summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-27 19:37:59 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-27 19:37:59 +0300
commit03418ce78766b062ce5af7aaf99f7f2c62152b6b (patch)
treeeb0127126e8d9506ca4aeee639c896bc561fa6ca /src/net/ea
parentc77f06f7b80a67c842abe837beb2f22e9ecf60cc (diff)
downloadmanaplus-03418ce78766b062ce5af7aaf99f7f2c62152b6b.tar.gz
manaplus-03418ce78766b062ce5af7aaf99f7f2c62152b6b.tar.bz2
manaplus-03418ce78766b062ce5af7aaf99f7f2c62152b6b.tar.xz
manaplus-03418ce78766b062ce5af7aaf99f7f2c62152b6b.zip
Add UpdateStatusListener.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/inventoryhandler.cpp3
-rw-r--r--src/net/ea/playerhandler.cpp6
2 files changed, 4 insertions, 5 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp
index d1dd5cf7d..1daafc2d5 100644
--- a/src/net/ea/inventoryhandler.cpp
+++ b/src/net/ea/inventoryhandler.cpp
@@ -27,8 +27,6 @@
#include "being/localplayer.h"
-#include "gui/windows/ministatuswindow.h"
-
#include "net/messagein.h"
#include "net/ea/eaprotocol.h"
@@ -36,6 +34,7 @@
#include "utils/delete2.h"
#include "listeners/arrowslistener.h"
+#include "listeners/updatestatuslistener.h"
#include "debug.h"
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index de376cead..475df2db0 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -33,7 +33,6 @@
#include "gui/viewport.h"
-#include "gui/windows/ministatuswindow.h"
#include "gui/windows/okdialog.h"
#include "gui/windows/npcdialog.h"
#include "gui/windows/skilldialog.h"
@@ -41,6 +40,8 @@
#include "resources/db/deaddb.h"
+#include "listeners/updatestatuslistener.h"
+
#include "net/messagein.h"
#include "net/net.h"
@@ -210,8 +211,7 @@ void PlayerHandler::processPlayerWarp(Net::MessageIn &msg)
if (viewport)
{
viewport->returnCamera();
- if (miniStatusWindow)
- miniStatusWindow->updateStatus();
+ UpdateStatusListener::distributeEvent();
viewport->scrollBy(scrollOffsetX, scrollOffsetY);
}
BLOCK_END("PlayerHandler::processPlayerWarp")