Work around an unsynced code check.

This commit is contained in:
Paul Chote
2015-06-21 10:34:37 +01:00
parent 6aeebe697f
commit 9e18d3cceb

View File

@@ -70,10 +70,15 @@ namespace OpenRA.Mods.Common.Widgets.Logic
Action<string> afterSave = uid =>
{
ConnectionLogic.Connect(System.Net.IPAddress.Loopback.ToString(),
Game.CreateLocalServer(uid), "",
() => Game.LoadEditor(uid),
() => { Game.CloseServer(); onExit(); });
// HACK: Work around a synced-code change check.
// It's not clear why this is needed here, but not in the other places that load maps.
Game.RunAfterTick(() =>
{
ConnectionLogic.Connect(System.Net.IPAddress.Loopback.ToString(),
Game.CreateLocalServer(uid), "",
() => Game.LoadEditor(uid),
() => { Game.CloseServer(); onExit(); });
});
Ui.CloseWindow();
onSelect(uid);