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 =>
|
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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user