mirror of https://github.com/ppy/osu
Change failed states to be considered as `NotPlaying`
This commit is contained in:
parent
ecf144f4a5
commit
24d6ea5444
|
@ -508,8 +508,8 @@ private void onBreakTimeChanged(ValueChangedEvent<bool> isBreakTime)
|
|||
|
||||
private void updateGameplayState()
|
||||
{
|
||||
bool inGameplay = !DrawableRuleset.HasReplayLoaded.Value && !GameplayState.HasPassed;
|
||||
bool inBreak = breakTracker.IsBreakTime.Value || DrawableRuleset.IsPaused.Value || GameplayState.HasFailed;
|
||||
bool inGameplay = !DrawableRuleset.HasReplayLoaded.Value && !GameplayState.HasPassed && !GameplayState.HasFailed;
|
||||
bool inBreak = breakTracker.IsBreakTime.Value || DrawableRuleset.IsPaused.Value;
|
||||
|
||||
if (inGameplay)
|
||||
playingState.Value = inBreak ? LocalUserPlayingState.Break : LocalUserPlayingState.Playing;
|
||||
|
|
Loading…
Reference in New Issue