summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertram <bertram@cegetel.net>2009-10-09 01:12:34 +0200
committerBertram <bertram@cegetel.net>2009-10-09 01:12:34 +0200
commit658e00c3b34821360e860fb060558c09d472a582 (patch)
tree94eb1610d9a121c05339bc78ac2f4b2fd8525cdc
parent91119464a20e29d7b125ee697e91bfce2d100d19 (diff)
downloadmana-658e00c3b34821360e860fb060558c09d472a582.tar.gz
mana-658e00c3b34821360e860fb060558c09d472a582.tar.bz2
mana-658e00c3b34821360e860fb060558c09d472a582.tar.xz
mana-658e00c3b34821360e860fb060558c09d472a582.zip
Fixed (again) mouse movement for TMWserv client.
By removing a stopWalking() call on each being->logic() because of setWalkingdir() when the current path wasn't empty.
-rw-r--r--src/localplayer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 727b067b..d770d3bb 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -477,8 +477,9 @@ void LocalPlayer::setWalkingDir(int dir)
if (dir && (dir != getWalkingDir()))
player_node->stopWalking(false);
- // Else, he is not pressing a key, stop (sending to server)
- else if (!dir)
+ // Else, he is not pressing a key,
+ // And the current path is over. Then, stop (sending to server).
+ else if (!dir && mPath.empty())
{
player_node->stopWalking(true);
return;