From b595695ec90d7e9207675f9b8c8ae2e978b03c5f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 8 Dec 2011 22:06:06 +0300 Subject: Fix monster hp bar in evol server. --- src/being.cpp | 6 +----- 1 file changed, 1 insertion(+), 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(static_cast(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)); } -- cgit v1.2.3-60-g2f50