diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-21 17:53:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-21 17:53:41 +0300 |
commit | 8b6afd0d756b9fc66c9f4de3ef452c24f64c87d1 (patch) | |
tree | 61f95032eb06210d145b3f1f704c2f60a396974a /src/game.cpp | |
parent | 623c0127e4ad5170e9ee003475ed566cec55cfeb (diff) | |
download | plus-8b6afd0d756b9fc66c9f4de3ef452c24f64c87d1.tar.gz plus-8b6afd0d756b9fc66c9f4de3ef452c24f64c87d1.tar.bz2 plus-8b6afd0d756b9fc66c9f4de3ef452c24f64c87d1.tar.xz plus-8b6afd0d756b9fc66c9f4de3ef452c24f64c87d1.zip |
move "change attack type" option into gamemodifiers.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 877204a4d..f282cbeae 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1059,7 +1059,7 @@ void Game::changeMap(const std::string &mapPath) void Game::updateHistory(const SDL_Event &event) { - if (!player_node || !player_node->getAttackType()) + if (!player_node || !settings.attackType) return; if (static_cast<int>(event.key.keysym.sym) != -1) @@ -1116,7 +1116,7 @@ void Game::checkKeys() const int timeRange = 120; const int cntInTime = 130; - if (!player_node || !player_node->getAttackType()) + if (!player_node || !settings.attackType) return; const int time = cur_time; |