summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-03 01:23:49 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-03 01:23:49 +0300
commitbd7821e9648186abf1fa06c6ded9e61755b1d369 (patch)
tree5827ca54b6d61897d272d8008de05265fe9edf59 /src/game.cpp
parentd1b20afbb5ba06a58dcda04760c523e71c0e6bcd (diff)
downloadmanaplus-bd7821e9648186abf1fa06c6ded9e61755b1d369.tar.gz
manaplus-bd7821e9648186abf1fa06c6ded9e61755b1d369.tar.bz2
manaplus-bd7821e9648186abf1fa06c6ded9e61755b1d369.tar.xz
manaplus-bd7821e9648186abf1fa06c6ded9e61755b1d369.zip
add action "move forward" default key unassigned.
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);