diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp index 89687054..cb85fc5c 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -873,11 +873,11 @@ void Game::handleInput() !keyboard.isKeyActive(keyboard.KEY_TARGET)) { Being::Type currentTarget = Being::UNKNOWN; - if (keyboard.isKeyActive(keyboard.KEY_TARGET_PLAYER)) - currentTarget = Being::PLAYER; - else if (keyboard.isKeyActive(keyboard.KEY_TARGET_CLOSEST) || + if (keyboard.isKeyActive(keyboard.KEY_TARGET_CLOSEST) || (joystick && joystick->buttonPressed(3))) currentTarget = Being::MONSTER; + else if (keyboard.isKeyActive(keyboard.KEY_TARGET_PLAYER)) + currentTarget = Being::PLAYER; else if (keyboard.isKeyActive(keyboard.KEY_TARGET_NPC)) currentTarget = Being::NPC; |