Reword comment to not mention tests driectly

This commit is contained in:
Dean Herbert 2021-05-20 15:39:29 +09:00
parent a639132825
commit dbfaaecd9c
1 changed files with 3 additions and 1 deletions

View File

@ -497,9 +497,11 @@ public override bool OnExiting(IScreen next)
ApplyToBackground(b => b.FadeColour(Color4.White, 500));
resetTrack();
// To update the game-wide beatmap with any changes, perform a re-fetch on exit.
// This is required as the editor makes its local changes via EditorBeatmap
// (which are not propagated outwards to a potentially cached WorkingBeatmap).
var refetchedBeatmap = beatmapManager.GetWorkingBeatmap(Beatmap.Value.BeatmapInfo);
// beatmap re-fetch may not be feasible in tests.
if (!(refetchedBeatmap is DummyWorkingBeatmap))
Beatmap.Value = refetchedBeatmap;