diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-28 13:20:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-29 00:18:56 +0300 |
commit | 72cc5d13430dff4e41c77482eebd9e5e421fe739 (patch) | |
tree | 60faa271d866cb464f2ed15892605001eb84253a /src/client.cpp | |
parent | e71b8c2bd9722aae29ed36b78806867964a3121d (diff) | |
download | manaverse-72cc5d13430dff4e41c77482eebd9e5e421fe739.tar.gz manaverse-72cc5d13430dff4e41c77482eebd9e5e421fe739.tar.bz2 manaverse-72cc5d13430dff4e41c77482eebd9e5e421fe739.tar.xz manaverse-72cc5d13430dff4e41c77482eebd9e5e421fe739.zip |
allow open help and did you know window before login into game.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index a04a20512..a4d77298d 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -54,7 +54,9 @@ #include "gui/charselectdialog.h" #include "gui/confirmdialog.h" #include "gui/connectiondialog.h" +#include "gui/didyouknowwindow.h" #include "gui/gui.h" +#include "gui/helpwindow.h" #include "gui/logindialog.h" #include "gui/okdialog.h" #include "gui/quitdialog.h" @@ -631,6 +633,8 @@ void Client::gameInit() userPalette = new UserPalette; setupWindow = new Setup; + helpWindow = new HelpWindow; + didYouKnowWindow = new DidYouKnowWindow; soundManager.playMusic(branding.getValue( "loginMusic", "Magick - Real.ogg")); @@ -746,6 +750,11 @@ void Client::gameClear() logger->log1("Quitting1"); config.removeListeners(this); + userPalette = nullptr; + setupWindow = nullptr; + helpWindow = nullptr; + didYouKnowWindow = nullptr; + SDL_RemoveTimer(mLogicCounterId); SDL_RemoveTimer(mSecondsCounterId); |