mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 07:47:25 +08:00
Fix potential crash in editor from transform time going below zero
This commit is contained in:
parent
cf38b15332
commit
775c6c8374
@ -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