Skip to content

Commit

Permalink
Send crosshair setting after the touch screen GUI has been initialized (
Browse files Browse the repository at this point in the history
  • Loading branch information
srifqi committed Oct 31, 2022
1 parent 88af36d commit 987277d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 987277d

Please sign in to comment.