mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Ensure true gameplay rate is finite when paused externally
This commit is contained in:
@ -5,6 +5,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Timing;
|
||||
using osu.Framework.Utils;
|
||||
|
||||
namespace osu.Game.Screens.Play
|
||||
{
|
||||
@ -47,7 +48,12 @@ namespace osu.Game.Screens.Play
|
||||
double baseRate = Rate;
|
||||
|
||||
foreach (var adjustment in NonGameplayAdjustments)
|
||||
{
|
||||
if (Precision.AlmostEquals(adjustment.Value, 0))
|
||||
return 0;
|
||||
|
||||
baseRate /= adjustment.Value;
|
||||
}
|
||||
|
||||
return baseRate;
|
||||
}
|
||||
|
Reference in New Issue
Block a user