route disconnect back to Game
This commit is contained in:
@@ -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() { }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user