diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-25 16:28:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-25 16:28:30 +0300 |
commit | 1608d342c064f79b239e4671da516d270445b385 (patch) | |
tree | f56b9ebd8d09da0b914afa58421b4d6b81fcecda /src | |
parent | fffbd86a1014ad169ed2d68ea58cdddf346faa14 (diff) | |
download | manaplus-1608d342c064f79b239e4671da516d270445b385.tar.gz manaplus-1608d342c064f79b239e4671da516d270445b385.tar.bz2 manaplus-1608d342c064f79b239e4671da516d270445b385.tar.xz manaplus-1608d342c064f79b239e4671da516d270445b385.zip |
Move some init code from Client::gameExec into Client::gameInit.
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/client.cpp b/src/client.cpp index adf2ffdb2..5bd3bd163 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -455,6 +455,18 @@ void Client::gameInit() WindowManager::updateScreenKeyboard(SDL_GetScreenKeyboardHeight(nullptr)); #endif #endif + +#ifdef USE_MUMBLE + if (!mumbleManager) + mumbleManager = new MumbleManager(); +#endif + + mSkin = theme->load("windowmenu.xml", ""); + if (mSkin) + { + mButtonPadding = mSkin->getPadding(); + mButtonSpacing = mSkin->getOption("spacing", 3); + } } Client::~Client() @@ -689,18 +701,6 @@ int Client::gameExec() { int lastTickTime = tick_time; -#ifdef USE_MUMBLE - if (!mumbleManager) - mumbleManager = new MumbleManager(); -#endif - - mSkin = theme->load("windowmenu.xml", ""); - if (mSkin) - { - mButtonPadding = mSkin->getPadding(); - mButtonSpacing = mSkin->getOption("spacing", 3); - } - while (mState != STATE_EXIT) { PROFILER_START(); |