From 89d67a3c0f222529e61207891ae320a5a5babcdf Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Tue, 28 Oct 2008 01:27:57 +0000 Subject: Fixed attacking so that it will actually continue to attack in succession like it's intended to if it's given a true keep flag, or just do one attack if that flag isn't set. Since most people seem to prefer to continue to attack when attacking, shift will be used for when someone only wants to hit the target once. --- src/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 2fc23a53..86427a7a 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -801,7 +801,7 @@ void Game::handleInput() { Being *target = beingManager->findNearestLivingBeing(x, y, 20, Being::MONSTER); - bool newTarget = keyboard.isKeyActive(keyboard.KEY_TARGET); + bool newTarget = !keyboard.isKeyActive(keyboard.KEY_TARGET); // A set target has highest priority if (newTarget || !player_node->getTarget()) { -- cgit v1.2.3-70-g09d2