summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-12-30 13:28:34 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2006-12-30 13:28:34 +0000
commit8b72679ea1d934f24e7864a843dd92a99e2cdb5b (patch)
tree7c4d2c8abbbdd394142d65ecadfc6a0a67f5e3d6
parenta89d148280158e22723496181414f2c3d6ac676b (diff)
downloadmana-client-8b72679ea1d934f24e7864a843dd92a99e2cdb5b.tar.gz
mana-client-8b72679ea1d934f24e7864a843dd92a99e2cdb5b.tar.bz2
mana-client-8b72679ea1d934f24e7864a843dd92a99e2cdb5b.tar.xz
mana-client-8b72679ea1d934f24e7864a843dd92a99e2cdb5b.zip
Changed attack message to send the direction the player is visually facing.
-rw-r--r--ChangeLog2
-rw-r--r--src/localplayer.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f9327b2c..38aaf3b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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