summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-28 23:21:07 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-28 23:21:07 +0300
commitbe3c1cf049d3df146d18acfb7cbead2ef3f660f1 (patch)
tree9f70999543adce3be255abdad6a9e284de266f50 /src/game.cpp
parent58974e6733a39bd55b9511f0010e0a8b7cd49aa4 (diff)
downloadmanaverse-be3c1cf049d3df146d18acfb7cbead2ef3f660f1.tar.gz
manaverse-be3c1cf049d3df146d18acfb7cbead2ef3f660f1.tar.bz2
manaverse-be3c1cf049d3df146d18acfb7cbead2ef3f660f1.tar.xz
manaverse-be3c1cf049d3df146d18acfb7cbead2ef3f660f1.zip
improve generalhandler class.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp7
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)