Change failed states to be considered as `NotPlaying`

This commit is contained in:
Dean Herbert 2024-10-03 17:11:41 +09:00
parent ecf144f4a5
commit 24d6ea5444
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -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;