diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-17 19:03:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-17 19:03:34 +0300 |
commit | af73c028c035aae3c96c00302491d62e9fbaea74 (patch) | |
tree | 933221b497f440f5b802f744808eaaba3a2c4dce | |
parent | 0e3457c5ee8cc6b999817ae1ed5a594bcf2516f8 (diff) | |
download | manaplus-1.1.9.18.tar.gz manaplus-1.1.9.18.tar.bz2 manaplus-1.1.9.18.tar.xz manaplus-1.1.9.18.zip |
Change sit state under attack only if player got hit.v1.1.9.18
-rw-r--r-- | src/being.cpp | 2 |
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) ? |