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.
|
// 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.
|
// It's not clear why this is needed here, but not in the other places that load maps.
|
||||||
Game.RunAfterTick(() =>
|
Game.RunAfterTick(() => Game.LoadEditor(uid));
|
||||||
{
|
|
||||||
ConnectionLogic.Connect(Game.CreateLocalServer(uid), "",
|
|
||||||
() => Game.LoadEditor(uid),
|
|
||||||
() => { Game.CloseServer(); onExit(); });
|
|
||||||
});
|
|
||||||
|
|
||||||
Ui.CloseWindow();
|
Ui.CloseWindow();
|
||||||
onSelect(uid);
|
onSelect(uid);
|
||||||
|
|||||||
Reference in New Issue
Block a user