route disconnect back to Game

This commit is contained in:
Chris Forbes
2010-05-05 17:37:18 +12:00
parent 75f5855881
commit d85bde324e
2 changed files with 5 additions and 4 deletions

View File

@@ -597,5 +597,7 @@ namespace OpenRA
public static void Exit() { quit = true; }
public static void Debug(string s) { chat.AddLine(Color.White, "Debug", s); }
public static void Disconnect() { }
}
}

View File

@@ -37,9 +37,8 @@ namespace OpenRA.Widgets.Delegates
};
optionsBG.GetWidget("BUTTON_DISCONNECT").OnMouseUp = mi => {
// Todo: Do this cleanly, so we don't crash
//Game.JoinLocal();
//Game.LoadShellMap(new Manifest(Game.LobbyInfo.GlobalSettings.Mods).ShellmapUid);
optionsBG.Visible = false;
Game.Disconnect();
return true;
};