1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

added spinner duration check - skip HitObjectReplay if duration is 0

This commit is contained in:
Pavle Aleksov 2020-08-31 16:21:00 +02:00
parent 288c4142aa
commit fde4b03dab

View File

@ -156,6 +156,9 @@ namespace osu.Game.Rulesets.Osu.Replays
// TODO: Shouldn't the spinner always spin in the same direction?
if (h is Spinner)
{
if ((h as Spinner).Duration == 0)
return;
calcSpinnerStartPosAndDirection(((OsuReplayFrame)Frames[^1]).Position, out startPosition, out spinnerDirection);
Vector2 spinCentreOffset = SPINNER_CENTRE - ((OsuReplayFrame)Frames[^1]).Position;