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 => Action<string> afterSave = uid =>
{ {
// HACK: Work around a synced-code change check. Game.LoadEditor(uid);
// It's not clear why this is needed here, but not in the other places that load maps.
Game.RunAfterTick(() => Game.LoadEditor(uid));
Ui.CloseWindow(); Ui.CloseWindow();
onSelect(uid); onSelect(uid);

View File

@@ -343,9 +343,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
void LoadMapIntoEditor(string uid) void LoadMapIntoEditor(string uid)
{ {
// HACK: Work around a synced-code change check. Game.LoadEditor(uid);
// It's not clear why this is needed here, but not in the other places that load maps.
Game.RunAfterTick(() => Game.LoadEditor(uid));
DiscordService.UpdateStatus(DiscordState.InMapEditor); DiscordService.UpdateStatus(DiscordState.InMapEditor);