summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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