summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-10 19:55:38 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-10 19:55:38 +0200
commit5992d792bc8dffc92251cea4d292635943801520 (patch)
tree190192158694df85a2040639b01de28555ea389e
parentf5a4406eaa3574ba7661b8282afcb2f10ec538c0 (diff)
downloadmv-5992d792bc8dffc92251cea4d292635943801520.tar.gz
mv-5992d792bc8dffc92251cea4d292635943801520.tar.bz2
mv-5992d792bc8dffc92251cea4d292635943801520.tar.xz
mv-5992d792bc8dffc92251cea4d292635943801520.zip
Hide own hp bar if player dead.
-rw-r--r--src/being.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 1d8178670..4f31e402c 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -1767,7 +1767,7 @@ bool Being::drawSpriteAt(Graphics *graphics, int x, int y) const
UserPalette::MONSTER_HP, UserPalette::MONSTER_HP2,
x - 50 + 16, y + 32 - 6, 2 * 50, 4);
}
- if (mShowOwnHP && player_node == this)
+ if (mShowOwnHP && player_node == this && mAction != DEAD)
{
drawHpBar(graphics, PlayerInfo::getAttribute(MAX_HP),
PlayerInfo::getAttribute(HP), 0,