diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-11-02 04:40:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-11-02 04:41:47 +0300 |
commit | b90214b9878246ec45e68c0c6c309337d8e15ef2 (patch) | |
tree | ea977f4aaf1bc2ab8cd86f77103d1bc9cee9e1d9 /src/game.cpp | |
parent | 17631dacf2cb8ebc3acc1dae9df0729a80a150d9 (diff) | |
download | plus-b90214b9878246ec45e68c0c6c309337d8e15ef2.tar.gz plus-b90214b9878246ec45e68c0c6c309337d8e15ef2.tar.bz2 plus-b90214b9878246ec45e68c0c6c309337d8e15ef2.tar.xz plus-b90214b9878246ec45e68c0c6c309337d8e15ef2.zip |
Add option to yellow bar to change player attack in pvp mode.
Modes: attack all, attack not friends, attack bad relations,
dont attack players.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 021943822..14e6806ce 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1105,6 +1105,14 @@ void Game::handleInput() } break; + case KeyboardConfig::KEY_SWITCH_PVP_ATTACK: + if (player_node) + { + if (!player_node->getDisableGameModifiers()) + player_node->switchPvpAttack(); + } + break; + case KeyboardConfig::KEY_CHANGE_MOVE_TO_TARGET: if (player_node) { |