summaryrefslogtreecommitdiff
path: root/src/gui/killstats.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-21 02:38:18 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-21 02:38:18 +0300
commitdaf84780d386ee122ae4b4bd37b1e918f93fb202 (patch)
treef967cbbf8de1e36aa8c48a556938ef5bf1a9cab9 /src/gui/killstats.cpp
parent98dabed4de60bc86522632379f2499aecbae2b70 (diff)
downloadmanaverse-daf84780d386ee122ae4b4bd37b1e918f93fb202.tar.gz
manaverse-daf84780d386ee122ae4b4bd37b1e918f93fb202.tar.bz2
manaverse-daf84780d386ee122ae4b4bd37b1e918f93fb202.tar.xz
manaverse-daf84780d386ee122ae4b4bd37b1e918f93fb202.zip
Fix more warnings.
Diffstat (limited to 'src/gui/killstats.cpp')
-rw-r--r--src/gui/killstats.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/killstats.cpp b/src/gui/killstats.cpp
index fa6241ef6..972c660ec 100644
--- a/src/gui/killstats.cpp
+++ b/src/gui/killstats.cpp
@@ -70,8 +70,8 @@ KillStats::KillStats():
xpNextLevel = 1;
mLine1 = new Label(strprintf(_("Level: %d at %f%%"),
- player_node->getLevel(), static_cast<float>(xp)
- / static_cast<float>(xpNextLevel) * 100.0f));
+ player_node->getLevel(), static_cast<double>(xp)
+ / static_cast<double>(xpNextLevel) * 100.0));
mLine2 = new Label(strprintf(_("Exp: %d/%d Left: %d"),
xp, xpNextLevel, xpNextLevel - xp));
@@ -206,9 +206,9 @@ void KillStats::gainXp(int xp)
timeDiff = 1;
mLine1->setCaption(strprintf(_("Level: %d at %f%%"),
- player_node->getLevel(), static_cast<float>(
- PlayerInfo::getAttribute(EXP)) / static_cast<float>(
- xpNextLevel) * 100.0f));
+ player_node->getLevel(), static_cast<double>(
+ PlayerInfo::getAttribute(EXP)) / static_cast<double>(
+ xpNextLevel) * 100.0));
mLine2->setCaption(strprintf(_("Exp: %d/%d Left: %d"),
PlayerInfo::getAttribute(EXP), xpNextLevel,