diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-03-19 20:43:10 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2006-03-19 20:43:10 +0000 |
commit | 654d24e74c56d240b8d622840c135e22a029636d (patch) | |
tree | 5eb8b94f7832bdbb6d21c7ded6e6da6b5f8f3464 /src/gui/ministatus.cpp | |
parent | 3ddaec5f355ed1d231514cf0a863c4b9e35cf2a6 (diff) | |
download | mana-654d24e74c56d240b8d622840c135e22a029636d.tar.gz mana-654d24e74c56d240b8d622840c135e22a029636d.tar.bz2 mana-654d24e74c56d240b8d622840c135e22a029636d.tar.xz mana-654d24e74c56d240b8d622840c135e22a029636d.zip |
Unreverted latest change by Doener due to my lack of proper communication abilities.
Diffstat (limited to 'src/gui/ministatus.cpp')
-rw-r--r-- | src/gui/ministatus.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp index fc2f451b..be089b68 100644 --- a/src/gui/ministatus.cpp +++ b/src/gui/ministatus.cpp @@ -24,13 +24,14 @@ #include "ministatus.h" #include <guichan/widgets/label.hpp> -#include <sstream> #include "gui.h" #include "progressbar.h" #include "../localplayer.h" +#include "../utils/tostring.h" + MiniStatusWindow::MiniStatusWindow(): Window("") { @@ -88,12 +89,8 @@ void MiniStatusWindow::update() // mpBar->setProgress((float)player_node->mp / (float)player_node->maxMp); // Update and center labels - std::stringstream updatedText; - updatedText << player_node->mHp; - mHpLabel->setCaption(updatedText.str()); - updatedText.str(""); - updatedText << player_node->mMp; - mMpLabel->setCaption(updatedText.str()); + mHpLabel->setCaption(toString(player_node->mHp)); + mMpLabel->setCaption(toString(player_node->mMp)); } void MiniStatusWindow::draw(gcn::Graphics *graphics) |