summaryrefslogtreecommitdiff
path: root/src/gui/statuswindow.cpp
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2012-02-07 14:31:14 +0100
committerErik Schilling <ablu.erikschilling@googlemail.com>2012-02-07 17:40:29 +0100
commit5d45a5ee002a1a6d67e88e7eece2b5a650baf8cf (patch)
treed2133e655408c80449a34943a3693f8058b963c2 /src/gui/statuswindow.cpp
parent46d9cbb6d287a8744dbf400aaefa6b5f29274529 (diff)
downloadmana-5d45a5ee002a1a6d67e88e7eece2b5a650baf8cf.tar.gz
mana-5d45a5ee002a1a6d67e88e7eece2b5a650baf8cf.tar.bz2
mana-5d45a5ee002a1a6d67e88e7eece2b5a650baf8cf.tar.xz
mana-5d45a5ee002a1a6d67e88e7eece2b5a650baf8cf.zip
Fixed color updates of magic bar
Resolves: Mana-Mantis #457. Reviewed-by: Bertram.
Diffstat (limited to 'src/gui/statuswindow.cpp')
-rw-r--r--src/gui/statuswindow.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp
index 310e6b9b..ebd54f33 100644
--- a/src/gui/statuswindow.cpp
+++ b/src/gui/statuswindow.cpp
@@ -39,6 +39,8 @@
#include "net/playerhandler.h"
#include "net/gamehandler.h"
+#include "net/tmwa/protocol.h"
+
#include "resources/theme.h"
#include "utils/gettext.h"
@@ -288,6 +290,12 @@ void StatusWindow::event(Event::Channel channel,
{
it->second->update();
}
+
+ if (Net::getNetworkType() == ServerInfo::TMWATHENA &&
+ id == TmwAthena::MATK)
+ {
+ updateMPBar(mMpBar, true);
+ }
}
}
}