diff options
-rw-r--r-- | src/localplayer.cpp | 5 |
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; |