summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 73cafad69..80d27a4a1 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -851,6 +851,12 @@ void Game::handleMove()
setValidSpeed();
player_node->cancelFollow();
}
+ else if (inputManager.isActionActive(Input::KEY_MOVE_FORWARD))
+ {
+ direction = player_node->getDirection();
+ setValidSpeed();
+ player_node->cancelFollow();
+ }
if (!inputManager.isActionActive(Input::KEY_EMOTE) || direction == 0)
moveInDirection(direction);