diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-28 23:21:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-28 23:21:07 +0300 |
commit | be3c1cf049d3df146d18acfb7cbead2ef3f660f1 (patch) | |
tree | 9f70999543adce3be255abdad6a9e284de266f50 /src/game.cpp | |
parent | 58974e6733a39bd55b9511f0010e0a8b7cd49aa4 (diff) | |
download | plus-be3c1cf049d3df146d18acfb7cbead2ef3f660f1.tar.gz plus-be3c1cf049d3df146d18acfb7cbead2ef3f660f1.tar.bz2 plus-be3c1cf049d3df146d18acfb7cbead2ef3f660f1.tar.xz plus-be3c1cf049d3df146d18acfb7cbead2ef3f660f1.zip |
improve generalhandler class.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp index 7c5138c7d..ac22d8724 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -80,6 +80,7 @@ #include "gui/widgets/spellshortcutcontainer.h" #include "gui/widgets/tradetab.h" +#include "net/generalhandler.h" #include "net/gamehandler.h" #include "net/packetcounters.h" #include "net/playerhandler.h" @@ -313,8 +314,7 @@ static void createGuiWindows() if (player_node) player_node->updateStatus(); - DepricatedEvent::trigger(CHANNEL_GAME, - DepricatedEvent(EVENT_GUIWINDOWSLOADED)); + Net::getGeneralHandler()->gameStarted(); } #define del_0(X) { delete X; X = nullptr; } @@ -324,8 +324,7 @@ static void createGuiWindows() */ static void destroyGuiWindows() { - DepricatedEvent::trigger(CHANNEL_GAME, - DepricatedEvent(EVENT_GUIWINDOWSUNLOADING)); + Net::getGeneralHandler()->gameEnded(); logger->setChatWindow(nullptr); if (whoIsOnline) |