summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-20 21:27:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-20 21:27:00 +0300
commit5688ea69de4884a464cefd4b47069b15f16b9e36 (patch)
treeee754cd7b7b19c3268f405d0fb047b4adc4585eb /src/net/ea
parent7975143ff6a344c0af4ace7f530ae02dc94e1a78 (diff)
downloadmanaverse-5688ea69de4884a464cefd4b47069b15f16b9e36.tar.gz
manaverse-5688ea69de4884a464cefd4b47069b15f16b9e36.tar.bz2
manaverse-5688ea69de4884a464cefd4b47069b15f16b9e36.tar.xz
manaverse-5688ea69de4884a464cefd4b47069b15f16b9e36.zip
Move weightlistener into separate file.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/playerhandler.cpp15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index c6080bcee..da38cce6a 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -45,6 +45,7 @@
#include "listeners/updatestatuslistener.h"
#include "listeners/playerdeathlistener.h"
+#include "listeners/weightlistener.h"
#include "net/messagein.h"
#include "net/net.h"
@@ -53,7 +54,6 @@
#include "debug.h"
-extern OkDialog *weightNotice;
extern int weightNoticeTime;
// Max. distance we are willing to scroll after a teleport;
@@ -62,19 +62,8 @@ static const int MAP_TELEPORT_SCROLL_DISTANCE = 8;
namespace
{
- /**
- * Listener used for handling the overweigth message.
- */
- struct WeightListener final : public ActionListener
- {
- void action(const ActionEvent &event A_UNUSED)
- {
- weightNotice = nullptr;
- }
- } weightListener;
-
+ WeightListener weightListener;
PlayerDeathListener deathListener;
-
} // anonymous namespace
namespace Ea