From 34d5b7d7a1b176a9665b9cdd5e8bc42bfdb83073 Mon Sep 17 00:00:00 2001 From: Bertram <bertram@cegetel.net> Date: Sat, 25 Jul 2009 01:13:19 +0200 Subject: Fixed HP and MP bar in the Ministatus Window. --- src/gui/statuswindow.cpp | 3 +++ src/gui/statuswindow.h | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp index bd1d4d85..4d8ce840 100644 --- a/src/gui/statuswindow.cpp +++ b/src/gui/statuswindow.cpp @@ -179,6 +179,9 @@ StatusWindow::StatusWindow(): std::string StatusWindow::update(int id) { + if (miniStatusWindow) + miniStatusWindow->update(id); + if (id == HP) { updateHPBar(mHpBar, true); diff --git a/src/gui/statuswindow.h b/src/gui/statuswindow.h index 79382cd5..f6d4f73e 100644 --- a/src/gui/statuswindow.h +++ b/src/gui/statuswindow.h @@ -67,9 +67,9 @@ class StatusWindow : public Window static void updateMPBar(ProgressBar *bar, bool showMax = false); static void updateXPBar(ProgressBar *bar, bool percent = true); static void updateProgressBar(ProgressBar *bar, int value, int max, - bool percent); - static void updateProgressBar(ProgressBar *bar, int id, - bool percent = true); + bool percent); + void updateProgressBar(ProgressBar *bar, int id, + bool percent = true); private: /** -- cgit v1.2.3-70-g09d2