mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Do not clear address in main menu if starting a singleplayer game by double clicking the world
This commit is contained in:
parent
2e90ed07ac
commit
c1cfcb1577
1 changed files with 3 additions and 2 deletions
|
@ -868,6 +868,7 @@ bool GUIMainMenu::OnEvent(const SEvent& event)
|
||||||
{
|
{
|
||||||
case GUI_ID_WORLD_LISTBOX:
|
case GUI_ID_WORLD_LISTBOX:
|
||||||
acceptInput();
|
acceptInput();
|
||||||
|
if(getTab() != TAB_SINGLEPLAYER)
|
||||||
m_data->address = L""; // Force local game
|
m_data->address = L""; // Force local game
|
||||||
quitMenu();
|
quitMenu();
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue