mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 13:47:38 +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)
|
if (ParentObject.Judged)
|
||||||
return;
|
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.
|
// 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).
|
// 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