mirror of
https://github.com/ppy/osu.git
synced 2025-03-16 00:37:19 +08:00
Handle case where TickDistance is zero (don't draw ticks).
This commit is contained in:
parent
23677a309f
commit
6c9fe544b2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user