diff options
-rw-r--r-- | src/being.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/being.cpp b/src/being.cpp index 185891509..9e5ae3ad1 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -2071,11 +2071,10 @@ void Being::drawHpBar(Graphics *graphics, int maxHP, int hp, int damage, int dx = static_cast<int>(static_cast<float>(width) / p); - if ((!damage && (this != player_node || hp == maxHP)) + if ((!damage && (this != player_node || hp == maxHP) && serverVersion < 1) || (!hp && maxHP == damage)) { graphics->setColor(userPalette->getColorWithAlpha(color1)); - graphics->fillRectangle(gcn::Rectangle( x, y, dx, height)); return; @@ -2083,19 +2082,16 @@ void Being::drawHpBar(Graphics *graphics, int maxHP, int hp, int damage, else if (width - dx <= 0) { graphics->setColor(userPalette->getColorWithAlpha(color2)); - graphics->fillRectangle(gcn::Rectangle( x, y, width, height)); return; } graphics->setColor(userPalette->getColorWithAlpha(color1)); - graphics->fillRectangle(gcn::Rectangle( x, y, dx, height)); graphics->setColor(userPalette->getColorWithAlpha(color2)); - graphics->fillRectangle(gcn::Rectangle( x + dx, y, width - dx, height)); } |