diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-23 14:14:51 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-08-23 14:14:51 +0000 |
commit | 5b755a2a6afdba9d07703c3bf5447bf314d842ab (patch) | |
tree | 9c8c1808283d5ecc954668fc53d76d0252eec430 /src/gui/ministatus.cpp | |
parent | 4b8df221acc3bd3e681357df912bdbc7a1ce6c3f (diff) | |
download | mana-5b755a2a6afdba9d07703c3bf5447bf314d842ab.tar.gz mana-5b755a2a6afdba9d07703c3bf5447bf314d842ab.tar.bz2 mana-5b755a2a6afdba9d07703c3bf5447bf314d842ab.tar.xz mana-5b755a2a6afdba9d07703c3bf5447bf314d842ab.zip |
Changed XP gaining effect to appear on the player instead.
Diffstat (limited to 'src/gui/ministatus.cpp')
-rw-r--r-- | src/gui/ministatus.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp index 932b1f22..694a6f32 100644 --- a/src/gui/ministatus.cpp +++ b/src/gui/ministatus.cpp @@ -98,7 +98,8 @@ void MiniStatusWindow::update() mHpBar->setProgress((float) player_node->mHp / player_node->mMaxHp); // mMpBar->setProgress((float) player_node->mMp / player_node->mMaxMp); - mXpBar->setProgress((float) player_node->mXp / player_node->mXpForNextLevel); + mXpBar->setProgress( + (float) player_node->getXp() / player_node->mXpForNextLevel); // Update labels mHpLabel->setCaption(toString(player_node->mHp)); @@ -106,7 +107,7 @@ void MiniStatusWindow::update() std::stringstream updatedText; updatedText << (int) ( - (float) player_node->mXp / + (float) player_node->getXp() / player_node->mXpForNextLevel * 100) << "%"; // Displays the number of monsters to next lvl |