diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-20 21:27:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-20 21:27:00 +0300 |
commit | 5688ea69de4884a464cefd4b47069b15f16b9e36 (patch) | |
tree | ee754cd7b7b19c3268f405d0fb047b4adc4585eb /src/net/ea/playerhandler.cpp | |
parent | 7975143ff6a344c0af4ace7f530ae02dc94e1a78 (diff) | |
download | ManaVerse-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/playerhandler.cpp')
-rw-r--r-- | src/net/ea/playerhandler.cpp | 15 |
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 |