From 952a06663d6e229ddd719f604bbf79e632d32945 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 20 Feb 2009 07:50:31 -0700 Subject: Restore old attack behavior --- src/game.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index fd89e085..89687054 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -839,8 +839,7 @@ void Game::handleInput() if (keyboard.isKeyActive(keyboard.KEY_ATTACK) || (joystick && joystick->buttonPressed(0))) { - Being *target = beingManager->findNearestLivingBeing(x, y, 20, - Being::MONSTER); + Being *target = NULL; bool newTarget = !keyboard.isKeyActive(keyboard.KEY_TARGET); // A set target has highest priority -- cgit v1.2.3-70-g09d2