From 327c7e01b95263961d1e3ecd450939de01262346 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 8 Sep 2011 01:33:59 +0300 Subject: Change player action from sit to stand if player under attack. --- src/being.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/being.cpp b/src/being.cpp index 3d89c71ba..eafc647fc 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -717,6 +717,8 @@ void Being::handleAttack(Being *victim, int damage, if (dir) setDirection(dir); } + if (victim->mType == PLAYER && victim->mAction == SIT) + victim->setAction(STAND); sound.playSfx(mInfo->getSound((damage > 0) ? SOUND_EVENT_HIT : SOUND_EVENT_MISS), mX, mY); -- cgit v1.2.3-60-g2f50