summaryrefslogtreecommitdiff
path: root/src/gui/status.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-10-18 15:55:52 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-10-18 15:55:52 +0000
commitd0333c99e0ff4c5510875bf8993056875d6c93af (patch)
treea0bb673db36b0cc0ca750500c6409b08e6eb40b6 /src/gui/status.cpp
parentd3175115354bb2417f01877a96d0068e2f2c875d (diff)
downloadmana-d0333c99e0ff4c5510875bf8993056875d6c93af.tar.gz
mana-d0333c99e0ff4c5510875bf8993056875d6c93af.tar.bz2
mana-d0333c99e0ff4c5510875bf8993056875d6c93af.tar.xz
mana-d0333c99e0ff4c5510875bf8993056875d6c93af.zip
Header, whitespace and intendation cleanups.
Diffstat (limited to 'src/gui/status.cpp')
-rw-r--r--src/gui/status.cpp13
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);