mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Fix case of zero rate calculating a zero true gameplay rate
This commit is contained in:
@ -14,7 +14,7 @@ namespace osu.Game.Screens.Play
|
||||
public static double GetTrueGameplayRate(this IGameplayClock clock)
|
||||
{
|
||||
// To handle rewind, we still want to maintain the same direction as the underlying clock.
|
||||
double rate = Math.Sign(clock.Rate);
|
||||
double rate = clock.Rate == 0 ? 1 : Math.Sign(clock.Rate);
|
||||
|
||||
return rate
|
||||
* clock.GameplayAdjustments.AggregateFrequency.Value
|
||||
|
Reference in New Issue
Block a user