diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-11-27 04:05:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-11-27 04:05:38 +0300 |
commit | 30e89c08e26cb0988afc33da18bcebed1d177883 (patch) | |
tree | 57f1ceb2e4fdf27eb624df0bee7cadc5f6516797 /src | |
parent | 71fe51d38a406012e166589b7b720d83c1ab3ade (diff) | |
download | mv-30e89c08e26cb0988afc33da18bcebed1d177883.tar.gz mv-30e89c08e26cb0988afc33da18bcebed1d177883.tar.bz2 mv-30e89c08e26cb0988afc33da18bcebed1d177883.tar.xz mv-30e89c08e26cb0988afc33da18bcebed1d177883.zip |
Fix players and mobs hp bar. Draw damage bar part in some situations.
Diffstat (limited to 'src')
-rw-r--r-- | src/being.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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<int>(static_cast<float>(width) / p); - if (!damage || (!hp && maxHP == damage)) + if ((!damage && (this != player_node || hp == maxHP)) + || (!hp && maxHP == damage)) { graphics->setColor(userPalette->getColorWithAlpha(color1)); |