Remove unnecessary server creation when creating a new map

This commit is contained in:
abcdefg30
2021-09-08 11:22:17 +02:00
committed by teinarss
parent 0b75991fbc
commit 777d966958

View File

@@ -72,12 +72,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
{
// 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(Game.CreateLocalServer(uid), "",
() => Game.LoadEditor(uid),
() => { Game.CloseServer(); onExit(); });
});
Game.RunAfterTick(() => Game.LoadEditor(uid));
Ui.CloseWindow();
onSelect(uid);