Work around an unsynced code check.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user