summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/being.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 49bcfee90..1d3b78293 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -633,6 +633,10 @@ void Being::handleAttack(Being *victim, int damage,
mActionTime = tick_time;
}
+ Uint8 dir = calcDirection(victim->getTileX(), victim->getTileY());
+ if (dir)
+ setDirection(dir);
+
sound.playSfx(mInfo->getSound((damage > 0) ?
SOUND_EVENT_HIT : SOUND_EVENT_MISS), mX, mY);
}