summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-04-10 23:42:45 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-11 00:05:30 +0300
commit9be7d0ac1127477a5ff5ffb3fb3dd45487eec213 (patch)
tree47433ccb0c1f7e4c71dea85647a642079948ad67 /src/game.cpp
parenta3475e987b0e642b2b9aa9c6cbf74762c6c77d23 (diff)
downloadplus-9be7d0ac1127477a5ff5ffb3fb3dd45487eec213.tar.gz
plus-9be7d0ac1127477a5ff5ffb3fb3dd45487eec213.tar.bz2
plus-9be7d0ac1127477a5ff5ffb3fb3dd45487eec213.tar.xz
plus-9be7d0ac1127477a5ff5ffb3fb3dd45487eec213.zip
Move untarget and stop attack actions to actionmanager from hardcoded place.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/game.cpp b/src/game.cpp
index b05cd6d28..68d637829 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -862,16 +862,6 @@ void Game::handleMoveAndAttack()
mLastTarget = ActorSprite::UNKNOWN; // Reset last target
}
}
-
- // Stop attacking if the right key is pressed
- if (!inputManager.isActionActive(Input::KEY_ATTACK)
- && !inputManager.isActionActive(Input::KEY_EMOTE))
- {
- if (inputManager.isActionActive(Input::KEY_STOP_ATTACK))
- player_node->stopAttack();
- else if (inputManager.isActionActive(Input::KEY_UNTARGET))
- player_node->untarget();
- }
}
}