1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 12:33:01 +08:00

Fix TestSceneMasterGameplayClockContainer not clearing previous test clocks

This commit is contained in:
Dean Herbert 2022-03-18 18:16:45 +09:00
parent 4bc7c69bf7
commit 7cb7b03cee

View File

@ -36,7 +36,7 @@ namespace osu.Game.Tests.Gameplay
var working = CreateWorkingBeatmap(new OsuRuleset().RulesetInfo); var working = CreateWorkingBeatmap(new OsuRuleset().RulesetInfo);
working.LoadTrack(); working.LoadTrack();
Add(gameplayClockContainer = new MasterGameplayClockContainer(working, 0)); Child = gameplayClockContainer = new MasterGameplayClockContainer(working, 0);
}); });
AddStep("start clock", () => gameplayClockContainer.Start()); AddStep("start clock", () => gameplayClockContainer.Start());
@ -53,7 +53,7 @@ namespace osu.Game.Tests.Gameplay
var working = CreateWorkingBeatmap(new OsuRuleset().RulesetInfo); var working = CreateWorkingBeatmap(new OsuRuleset().RulesetInfo);
working.LoadTrack(); working.LoadTrack();
Add(gameplayClockContainer = new MasterGameplayClockContainer(working, 0)); Child = gameplayClockContainer = new MasterGameplayClockContainer(working, 0);
}); });
AddStep("start clock", () => gameplayClockContainer.Start()); AddStep("start clock", () => gameplayClockContainer.Start());
@ -83,7 +83,7 @@ namespace osu.Game.Tests.Gameplay
working = new ClockBackedTestWorkingBeatmap(new OsuRuleset().RulesetInfo, new FramedClock(new ManualClock()), Audio); working = new ClockBackedTestWorkingBeatmap(new OsuRuleset().RulesetInfo, new FramedClock(new ManualClock()), Audio);
working.LoadTrack(); working.LoadTrack();
Add(gameplayClockContainer = new MasterGameplayClockContainer(working, 0)); Child = gameplayClockContainer = new MasterGameplayClockContainer(working, 0);
gameplayClockContainer.Reset(startClock: !whileStopped); gameplayClockContainer.Reset(startClock: !whileStopped);
}); });