mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 01:52:55 +08:00
Merge pull request #19132 from peppy/fix-potential-crash
Fix potential crash in editor from transform time going below zero
This commit is contained in:
commit
4514d5e97b
@ -28,7 +28,7 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
|
||||
if (ParentObject.Judged)
|
||||
return;
|
||||
|
||||
double remainingTime = ParentObject.HitStateUpdateTime - Time.Current;
|
||||
double remainingTime = Math.Max(0, ParentObject.HitStateUpdateTime - Time.Current);
|
||||
|
||||
// Note that the scale adjust here is 2 instead of DrawableSliderBall.FOLLOW_AREA to match legacy behaviour.
|
||||
// This means the actual tracking area for gameplay purposes is larger than the sprite (but skins may be accounting for this).
|
||||
|
Loading…
Reference in New Issue
Block a user