From be3c1cf049d3df146d18acfb7cbead2ef3f660f1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 Mar 2013 23:21:07 +0300 Subject: improve generalhandler class. --- src/game.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/game.cpp') 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) -- cgit v1.2.3-70-g09d2