1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 20:47:25 +08:00

Handle case where TickDistance is zero (don't draw ticks).

This commit is contained in:
Dean Herbert 2017-02-16 13:20:30 +09:00
parent 23677a309f
commit 6c9fe544b2
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -71,6 +71,8 @@ namespace osu.Game.Modes.Osu.Objects
{
get
{
if (TickDistance == 0) yield break;
var length = Curve.Length;
var tickDistance = Math.Min(TickDistance, length);
var repeatDuration = length / Velocity;