diff options
Diffstat (limited to 'src/gui/ministatus.cpp')
-rw-r--r-- | src/gui/ministatus.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/ministatus.cpp b/src/gui/ministatus.cpp index be089b68..fc2f451b 100644 --- a/src/gui/ministatus.cpp +++ b/src/gui/ministatus.cpp @@ -24,14 +24,13 @@ #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("") { @@ -89,8 +88,12 @@ void MiniStatusWindow::update() // mpBar->setProgress((float)player_node->mp / (float)player_node->maxMp); // Update and center labels - mHpLabel->setCaption(toString(player_node->mHp)); - mMpLabel->setCaption(toString(player_node->mMp)); + std::stringstream updatedText; + updatedText << player_node->mHp; + mHpLabel->setCaption(updatedText.str()); + updatedText.str(""); + updatedText << player_node->mMp; + mMpLabel->setCaption(updatedText.str()); } void MiniStatusWindow::draw(gcn::Graphics *graphics) |