summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 238af129..765c9bd2 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -225,6 +225,17 @@ void LocalPlayer::logic()
Player::logic();
}
+void LocalPlayer::setAction(Action action, int attackType)
+{
+ if (action == DEAD)
+ {
+ mLastTarget = -1;
+ setTarget(NULL);
+ }
+
+ Player::setAction(action, attackType);
+}
+
void LocalPlayer::setGM()
{
mIsGM = !mIsGM;