diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-07 19:22:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-07 21:38:21 +0300 |
commit | e7d34cc22d3bfd0dd44b014af1bd5fdc891141aa (patch) | |
tree | f7fa5a490a99cd4c08d051f44154d5d0e4d26222 /src/gui/killstats.cpp | |
parent | ffeffa2314dbe03e0ced58e0c465760b54908690 (diff) | |
download | manaverse-e7d34cc22d3bfd0dd44b014af1bd5fdc891141aa.tar.gz manaverse-e7d34cc22d3bfd0dd44b014af1bd5fdc891141aa.tar.bz2 manaverse-e7d34cc22d3bfd0dd44b014af1bd5fdc891141aa.tar.xz manaverse-e7d34cc22d3bfd0dd44b014af1bd5fdc891141aa.zip |
fix more style, add consts.
Diffstat (limited to 'src/gui/killstats.cpp')
-rw-r--r-- | src/gui/killstats.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/killstats.cpp b/src/gui/killstats.cpp index 61d8acfcb..d45e6a4bb 100644 --- a/src/gui/killstats.cpp +++ b/src/gui/killstats.cpp @@ -215,8 +215,8 @@ void KillStats::gainXp(int xp) const int exp = PlayerInfo::getAttribute(PlayerInfo::EXP); mLine1->setCaption(strprintf(_("Level: %d at %f%%"), - player_node->getLevel(), static_cast<double>(exp) / static_cast<double>( - xpNextLevel) * 100.0)); + player_node->getLevel(), static_cast<double>(exp) + / static_cast<double>(xpNextLevel) * 100.0)); mLine2->setCaption(strprintf(_("Exp: %d/%d Left: %d"), exp, xpNextLevel, xpNextLevel - exp)); |