From bd7821e9648186abf1fa06c6ded9e61755b1d369 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Nov 2013 01:23:49 +0300 Subject: add action "move forward" default key unassigned. --- src/game.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game.cpp') 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); -- cgit v1.2.3-60-g2f50