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 => Action<string> afterSave = uid =>
{ {
ConnectionLogic.Connect(System.Net.IPAddress.Loopback.ToString(), // HACK: Work around a synced-code change check.
Game.CreateLocalServer(uid), "", // It's not clear why this is needed here, but not in the other places that load maps.
() => Game.LoadEditor(uid), Game.RunAfterTick(() =>
() => { Game.CloseServer(); onExit(); }); {
ConnectionLogic.Connect(System.Net.IPAddress.Loopback.ToString(),
Game.CreateLocalServer(uid), "",
() => Game.LoadEditor(uid),
() => { Game.CloseServer(); onExit(); });
});
Ui.CloseWindow(); Ui.CloseWindow();
onSelect(uid); onSelect(uid);