summaryrefslogtreecommitdiff
path: root/src/gui/statuswindow.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-11-27 15:50:12 -0700
committerJared Adams <jaxad0127@gmail.com>2009-11-27 15:50:12 -0700
commitf637a4e66fbb015020cdc874d33c759f5ab40884 (patch)
tree4f49f14c3c4832a187eeabefb612b9b4665b9eec /src/gui/statuswindow.cpp
parent62d86f1c84678e04e7015a8f2440f0c251887c21 (diff)
downloadmana-f637a4e66fbb015020cdc874d33c759f5ab40884.tar.gz
mana-f637a4e66fbb015020cdc874d33c759f5ab40884.tar.bz2
mana-f637a4e66fbb015020cdc874d33c759f5ab40884.tar.xz
mana-f637a4e66fbb015020cdc874d33c759f5ab40884.zip
Fix display of status bars again
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r--src/gui/statuswindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp
index c479fed7..94c95f68 100644
--- a/src/gui/statuswindow.cpp
+++ b/src/gui/statuswindow.cpp
@@ -408,7 +408,7 @@ void StatusWindow::updateProgressBar(ProgressBar *bar, int value, int max,
}
else
{
- float progress = (float) value / max;
+ float progress = ((float) value) / max;
if (percent)
bar->setText(strprintf("%2.2f", 100 * progress) + "%");