Remove hacks around checking sync while disposing the shellmap
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user