Send crosshair setting after the touch screen GUI has been initialized (#12910)

This commit is contained in:
Muhammad Rifqi Priyo Susanto 2022-10-31 20:17:50 +07:00 committed by GitHub
parent 88af36dd10
commit 987277de52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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))