From 5992d792bc8dffc92251cea4d292635943801520 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 10 Jan 2011 19:55:38 +0200 Subject: Hide own hp bar if player dead. --- src/being.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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, -- cgit v1.2.3-70-g09d2