From: Perttu Ahola Date: Sun, 18 Mar 2012 13:26:06 +0000 (+0200) Subject: Do not clear address in main menu if starting a singleplayer game by double clicking... X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=c1cfcb15774b05285acc91be928b90105f71632b;p=zefram%2Fminetest%2Fminetest_engine.git Do not clear address in main menu if starting a singleplayer game by double clicking the world --- diff --git a/src/guiMainMenu.cpp b/src/guiMainMenu.cpp index 4ee153d3..77a5c161 100644 --- a/src/guiMainMenu.cpp +++ b/src/guiMainMenu.cpp @@ -866,9 +866,10 @@ bool GUIMainMenu::OnEvent(const SEvent& event) { switch(event.GUIEvent.Caller->getID()) { - case GUI_ID_WORLD_LISTBOX: + case GUI_ID_WORLD_LISTBOX: acceptInput(); - m_data->address = L""; // Force local game + if(getTab() != TAB_SINGLEPLAYER) + m_data->address = L""; // Force local game quitMenu(); return true; }