diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-02 18:58:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-02 18:58:51 +0300 |
commit | 691703127f7f35e8b954782ddb7ff613c478bedb (patch) | |
tree | 5599818e8e26138fbcbec82823eab751253acc93 /src/client.cpp | |
parent | c73d1eddfd143dfbd78f078487601d650c931752 (diff) | |
download | manaverse-691703127f7f35e8b954782ddb7ff613c478bedb.tar.gz manaverse-691703127f7f35e8b954782ddb7ff613c478bedb.tar.bz2 manaverse-691703127f7f35e8b954782ddb7ff613c478bedb.tar.xz manaverse-691703127f7f35e8b954782ddb7ff613c478bedb.zip |
Collect asserts before creating chat window
and after show all collected asserts in debug chat tab.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 075c6335e..4f7accd36 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -143,6 +143,7 @@ #include "utils/translation/translationmanager.h" +#include "listeners/assertlistener.h" #include "listeners/errorlistener.h" #ifdef USE_OPENGL @@ -261,6 +262,7 @@ void Client::gameInit() initRand(); + assertListener = new AssertListener; // Load branding information if (!settings.options.brandingPath.empty()) branding.init(settings.options.brandingPath); @@ -573,6 +575,8 @@ void Client::gameClear() logger->log1("Quitting1"); config.removeListeners(this); + delete2(assertListener); + eventsManager.shutdown(); WindowManager::deleteWindows(); if (windowContainer) @@ -983,6 +987,7 @@ int Client::gameExec() if (mOldState == State::GAME) { delete2(mGame); + assertListener = new AssertListener; Game::clearInstance(); resourceManager->cleanOrphans(); Party::clearParties(); |