mirror of
https://github.com/ppy/osu.git
synced 2025-03-22 22:17:46 +08:00
Fix exit key during storyboard outro not progressing to results
This commit is contained in:
parent
d174a6ce61
commit
fa47309eef
@ -72,12 +72,12 @@ namespace osu.Game.Tests.Visual.Gameplay
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestStoryboardExitDuringOutroStillExits()
|
||||
public void TestStoryboardExitDuringOutroProgressesToResults()
|
||||
{
|
||||
CreateTest();
|
||||
AddUntilStep("completion set by processor", () => Player.ScoreProcessor.HasCompleted.Value);
|
||||
AddStep("exit via pause", () => Player.ExitViaPause());
|
||||
AddAssert("player exited", () => !Player.IsCurrentScreen() && Player.GetChildScreen() == null);
|
||||
AddUntilStep("reached results screen", () => Stack.CurrentScreen is ResultsScreen);
|
||||
}
|
||||
|
||||
[TestCase(false)]
|
||||
|
@ -596,7 +596,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
// Matching osu!stable behaviour, if the results screen is pending and the user requests an exit,
|
||||
// show the results instead.
|
||||
if (resultsDisplayDelegate != null && !isRestarting)
|
||||
if (GameplayState.HasPassed && !isRestarting)
|
||||
{
|
||||
progressToResults(false);
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user