From 30e89c08e26cb0988afc33da18bcebed1d177883 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 27 Nov 2011 04:05:38 +0300 Subject: Fix players and mobs hp bar. Draw damage bar part in some situations. --- src/being.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/being.cpp') diff --git a/src/being.cpp b/src/being.cpp index 736d64f1a..31f1eac59 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -2071,7 +2071,8 @@ void Being::drawHpBar(Graphics *graphics, int maxHP, int hp, int damage, int dx = static_cast(static_cast(width) / p); - if (!damage || (!hp && maxHP == damage)) + if ((!damage && (this != player_node || hp == maxHP)) + || (!hp && maxHP == damage)) { graphics->setColor(userPalette->getColorWithAlpha(color1)); -- cgit v1.2.3-60-g2f50