summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-17 19:03:34 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-17 19:03:34 +0300
commitaf73c028c035aae3c96c00302491d62e9fbaea74 (patch)
tree933221b497f440f5b802f744808eaaba3a2c4dce /src
parent0e3457c5ee8cc6b999817ae1ed5a594bcf2516f8 (diff)
downloadplus-af73c028c035aae3c96c00302491d62e9fbaea74.tar.gz
plus-af73c028c035aae3c96c00302491d62e9fbaea74.tar.bz2
plus-af73c028c035aae3c96c00302491d62e9fbaea74.tar.xz
plus-af73c028c035aae3c96c00302491d62e9fbaea74.zip
Change sit state under attack only if player got hit.v1.1.9.18
Diffstat (limited to 'src')
-rw-r--r--src/being.cpp2
1 files changed, 1 insertions, 1 deletions
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) ?