From 658e00c3b34821360e860fb060558c09d472a582 Mon Sep 17 00:00:00 2001 From: Bertram Date: Fri, 9 Oct 2009 01:12:34 +0200 Subject: 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. --- src/localplayer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2