Remove hacks around checking sync while disposing the shellmap

This commit is contained in:
abcdefg30
2021-09-15 19:04:49 +02:00
committed by teinarss
parent 69248132ad
commit 4269fc67d5
2 changed files with 2 additions and 6 deletions

View File

@@ -70,9 +70,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
Action<string> afterSave = uid =>
{
// 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(() => Game.LoadEditor(uid));
Game.LoadEditor(uid);
Ui.CloseWindow();
onSelect(uid);

View File

@@ -343,9 +343,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
void LoadMapIntoEditor(string uid)
{
// 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(() => Game.LoadEditor(uid));
Game.LoadEditor(uid);
DiscordService.UpdateStatus(DiscordState.InMapEditor);