summaryrefslogtreecommitdiff
path: root/src/gui/killstats.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-27 21:41:20 +0300
committerAndrei Karas <akaras@inbox.ru>2011-03-27 21:41:20 +0300
commit964ffbb9b6ed5246b14a7d0c0d065f7d38af0912 (patch)
treeedef1b3f31183402e2d0f86ee48c9734c2a03c7e /src/gui/killstats.cpp
parent41ac086fcd38fd472b579a495a8e8e7685ae4722 (diff)
downloadmv-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.tar.gz
mv-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.tar.bz2
mv-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.tar.xz
mv-964ffbb9b6ed5246b14a7d0c0d065f7d38af0912.zip
Fix some warnings and improve code from gcc 4.6 compilation.
Diffstat (limited to 'src/gui/killstats.cpp')
-rw-r--r--src/gui/killstats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/killstats.cpp b/src/gui/killstats.cpp
index 9bbbc8549..f01dd01c7 100644
--- a/src/gui/killstats.cpp
+++ b/src/gui/killstats.cpp
@@ -193,7 +193,7 @@ void KillStats::gainXp(int xp)
mLine2->setCaption("Exp: " + toString(PlayerInfo::getAttribute(EXP)) + "/"
+ toString(xpNextLevel) + " Left: "
+ toString(xpNextLevel - PlayerInfo::getAttribute(EXP)));
- if (AvgExp >= 0.001 && AvgExp <= 0.001)
+ if (AvgExp >= 0.001f && AvgExp <= 0.001f)
{
mLine3->setCaption("1% = " + toString(xpNextLevel / 100)
+ " exp, Avg Mob for 1%: ?");