mirror of
https://github.com/minetest/minetest.git
synced 2024-08-19 21:14:15 +02:00
Touchscreen: Make server-sent overrides of button textures work (#14145)
This commit is contained in:
parent
e0d4a9d575
commit
46c930cf70
@ -1489,12 +1489,6 @@ bool Game::createClient(const GameStartData &start_data)
|
||||
return false;
|
||||
|
||||
bool could_connect, connect_aborted;
|
||||
#ifdef HAVE_TOUCHSCREENGUI
|
||||
if (g_touchscreengui) {
|
||||
g_touchscreengui->init(texture_src);
|
||||
g_touchscreengui->hide();
|
||||
}
|
||||
#endif
|
||||
if (!connectToServer(start_data, &could_connect, &connect_aborted))
|
||||
return false;
|
||||
|
||||
@ -1603,10 +1597,8 @@ bool Game::initGui()
|
||||
-1, chat_backend, client, &g_menumgr);
|
||||
|
||||
#ifdef HAVE_TOUCHSCREENGUI
|
||||
|
||||
if (g_touchscreengui)
|
||||
g_touchscreengui->show();
|
||||
|
||||
g_touchscreengui->init(texture_src);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user