Use the same mechanism for loading ingame and shellmap ui.

This commit is contained in:
Paul Chote
2011-05-08 21:23:01 +12:00
parent 07d5f91325
commit d95138b600
6 changed files with 41 additions and 11 deletions

View File

@@ -91,11 +91,8 @@ namespace OpenRA.Mods.Cnc.Widgets
var onQuit = (Action)(() =>
{
Game.DisconnectOnly();
// This is stupid. It should be handled by the shellmap
Game.LoadShellMap();
Widget.RootWidget.RemoveChildren();
Widget.LoadWidget("MENU_BACKGROUND", new Dictionary<string, object>());
Game.LoadShellMap();
});
var doNothing = (Action)(() => {});