summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index a63ec18a..87a4f81b 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -29,10 +29,11 @@
#include "game.h"
#include "inventory.h"
#include "item.h"
+#include "keyboardconfig.h"
#include "main.h"
+#include "monster.h"
#include "particle.h"
#include "sound.h"
-#include "monster.h"
#include "gui/gui.h"
@@ -129,6 +130,11 @@ void LocalPlayer::logic()
mLastTarget = -1;
}
+ if (keyboard.isKeyActive(keyboard.KEY_TARGET))
+ {
+ stopAttack();
+ }
+
if (mTarget)
{
if (mTarget->mAction == DEAD)