summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp24
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();