summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-02-20 07:50:31 -0700
committerJared Adams <jaxad0127@gmail.com>2009-02-20 07:50:31 -0700
commit952a06663d6e229ddd719f604bbf79e632d32945 (patch)
tree5fdcbc2c7f419e65a73bd6a733a115d2a2a5c3be /src
parentc16086df4022e5c6c9818dbcaf02ffeb6d6684d7 (diff)
downloadmana-client-952a06663d6e229ddd719f604bbf79e632d32945.tar.gz
mana-client-952a06663d6e229ddd719f604bbf79e632d32945.tar.bz2
mana-client-952a06663d6e229ddd719f604bbf79e632d32945.tar.xz
mana-client-952a06663d6e229ddd719f604bbf79e632d32945.zip
Restore old attack behavior
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp3
1 files changed, 1 insertions, 2 deletions
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