diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-12-30 13:28:34 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2006-12-30 13:28:34 +0000 |
commit | 8b72679ea1d934f24e7864a843dd92a99e2cdb5b (patch) | |
tree | 7c4d2c8abbbdd394142d65ecadfc6a0a67f5e3d6 | |
parent | a89d148280158e22723496181414f2c3d6ac676b (diff) | |
download | mana-8b72679ea1d934f24e7864a843dd92a99e2cdb5b.tar.gz mana-8b72679ea1d934f24e7864a843dd92a99e2cdb5b.tar.bz2 mana-8b72679ea1d934f24e7864a843dd92a99e2cdb5b.tar.xz mana-8b72679ea1d934f24e7864a843dd92a99e2cdb5b.zip |
Changed attack message to send the direction the player is visually facing.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/localplayer.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -2,6 +2,8 @@ * src/being.h, src/being.cpp: Improved movement smoothness by avoiding useless changes of sprite direction. + * src/localplayer.cpp: Changed attack message to send the direction + the player is visually facing. 2006-12-29 Guillaume Melquiond <guillaume.melquiond@gmail.com> diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 68f5d7d9..962a1ae4 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -365,7 +365,7 @@ void LocalPlayer::attack() else sound.playSfx("sfx/fist-swish.ogg"); - Net::GameServer::Player::attack(mDirection); + Net::GameServer::Player::attack(getSpriteDirection()); } Being* LocalPlayer::getTarget() const |