aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/game.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index 179557cf5..e180c88b2 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -1421,7 +1421,6 @@ bool Game::createClient(const GameStartData &start_data)
if (g_touchscreengui) {
g_touchscreengui->init(texture_src);
g_touchscreengui->hide();
- g_touchscreengui->setUseCrosshair(!isNoCrosshairAllowed());
}
#endif
if (!connectToServer(start_data, &could_connect, &connect_aborted))
@@ -1458,6 +1457,11 @@ bool Game::createClient(const GameStartData &start_data)
if (client->modsLoaded())
client->getScript()->on_camera_ready(camera);
client->setCamera(camera);
+#ifdef HAVE_TOUCHSCREENGUI
+ if (g_touchscreengui) {
+ g_touchscreengui->setUseCrosshair(!isNoCrosshairAllowed());
+ }
+#endif
/* Clouds
*/