1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 17:27:24 +08:00

"Fix" tests

This commit is contained in:
Dean Herbert 2024-02-29 18:21:44 +08:00
parent 1fb4536220
commit 3355764a68
No known key found for this signature in database

View File

@ -6,6 +6,7 @@ using System.Diagnostics;
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Bindables;
using osu.Framework.Development;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Timing;
@ -155,7 +156,7 @@ namespace osu.Game.Rulesets.UI
//
// It basically says that "while we're running in frame stable mode, and don't have a replay attached,
// time should never go backwards". If it does, we stop running gameplay until it returns to normal.
if (!hasReplayAttached && FrameStablePlayback && proposedTime > referenceClock.CurrentTime)
if (!hasReplayAttached && FrameStablePlayback && proposedTime > referenceClock.CurrentTime && !DebugUtils.IsNUnitRunning)
{
state = PlaybackState.NotValid;
return;