From 5688ea69de4884a464cefd4b47069b15f16b9e36 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 20 May 2014 21:27:00 +0300 Subject: Move weightlistener into separate file. --- src/net/ea/playerhandler.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'src/net/ea') 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 -- cgit v1.2.3-70-g09d2