From af73c028c035aae3c96c00302491d62e9fbaea74 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 17 Sep 2011 19:03:34 +0300 Subject: Change sit state under attack only if player got hit. --- src/being.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index 86695ee61..532e6e2cf 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -714,7 +714,7 @@ void Being::handleAttack(Being *victim, int damage, if (dir) setDirection(dir); } - if (victim->mType == PLAYER && victim->mAction == SIT) + if (damage && victim->mType == PLAYER && victim->mAction == SIT) victim->setAction(STAND); sound.playSfx(mInfo->getSound((damage > 0) ? -- cgit v1.2.3-60-g2f50