mirror of
https://github.com/ppy/osu.git
synced 2026-05-13 19:54:15 +08:00
Fix crash when rewinding replay with rate-adjusted hit animations off (#37721)
Closes https://github.com/ppy/osu/issues/37720.
This commit is contained in:
committed by
GitHub
Unverified
parent
c2b96eb0f2
commit
89386859fa
@@ -181,7 +181,7 @@ namespace osu.Game.Rulesets.Taiko.Objects.Drawables
|
||||
MainPiece.MoveToX(-X);
|
||||
|
||||
// Rate independent to match stable.
|
||||
double rate = (Clock as IGameplayClock)?.GetTrueGameplayRate() ?? Clock.Rate;
|
||||
double rate = Math.Abs((Clock as IGameplayClock)?.GetTrueGameplayRate() ?? Clock.Rate);
|
||||
double length = gravity_time * (rateAdjustedHitAnimations.Value ? 1 : rate);
|
||||
|
||||
this.ScaleTo(0.8f, length * 2, Easing.OutQuad);
|
||||
|
||||
Reference in New Issue
Block a user