Do not clear address in main menu if starting a singleplayer game by double clicking the world

master
Perttu Ahola 2012-03-18 15:26:06 +02:00
parent 2e90ed07ac
commit c1cfcb1577
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}