aboutsummaryrefslogtreecommitdiff
path: root/src/client/game.cpp
diff options
context:
space:
mode:
authorMuhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>2022-10-31 20:17:50 +0700
committerGitHub <noreply@github.com>2022-10-31 14:17:50 +0100
commit987277de52633208fae027e9d3bd0f7affa79a66 (patch)
tree822d11546322361adb4ea2460d90eca2695de649 /src/client/game.cpp
parent88af36dd10b854b300156ddd18ec31a3283e9886 (diff)
downloadminetest-987277de52633208fae027e9d3bd0f7affa79a66.tar.xz
Send crosshair setting after the touch screen GUI has been initialized (#12910)
Diffstat (limited to 'src/client/game.cpp')
-rw-r--r--src/client/game.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index cdcfde759..5eb185f86 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -1407,6 +1407,7 @@ 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))