diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-18 15:55:52 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-18 15:55:52 +0000 |
commit | d0333c99e0ff4c5510875bf8993056875d6c93af (patch) | |
tree | a0bb673db36b0cc0ca750500c6409b08e6eb40b6 /src/gui/status.cpp | |
parent | d3175115354bb2417f01877a96d0068e2f2c875d (diff) | |
download | mana-client-d0333c99e0ff4c5510875bf8993056875d6c93af.tar.gz mana-client-d0333c99e0ff4c5510875bf8993056875d6c93af.tar.bz2 mana-client-d0333c99e0ff4c5510875bf8993056875d6c93af.tar.xz mana-client-d0333c99e0ff4c5510875bf8993056875d6c93af.zip |
Header, whitespace and intendation cleanups.
Diffstat (limited to 'src/gui/status.cpp')
-rw-r--r-- | src/gui/status.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gui/status.cpp b/src/gui/status.cpp index 0c20b6fc..10b6431d 100644 --- a/src/gui/status.cpp +++ b/src/gui/status.cpp @@ -309,16 +309,13 @@ void StatusWindow::update() { hpBar->setColor(223, 32, 32); // Red } + else if (player_info->hp < int((player_info->maxHp / 3) * 2)) + { + hpBar->setColor(230, 171, 34); // Orange + } else { - if (player_info->hp < int((player_info->maxHp / 3) * 2)) - { - hpBar->setColor(230, 171, 34); // Orange - } - else - { - hpBar->setColor(0, 171, 34); // Green - } + hpBar->setColor(0, 171, 34); // Green } hpBar->setProgress((float)player_info->hp / (float)player_info->maxHp); |