Remove unnecessary server creation when creating a new map
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user