1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 22:22:54 +08:00

Avoid drawing segments of cursor trail near current cursor position

This commit is contained in:
Endrik Tombak 2021-08-16 22:13:01 +03:00
parent 4fb6f5c5ed
commit 314c342841

View File

@ -172,7 +172,7 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
float interval = partSize.X / 2.5f * IntervalMultiplier; float interval = partSize.X / 2.5f * IntervalMultiplier;
for (float d = interval; d < distance; d += interval) for (float d = interval; d < distance - interval; d += interval)
{ {
lastPosition = pos1 + direction * d; lastPosition = pos1 + direction * d;
addPart(lastPosition.Value); addPart(lastPosition.Value);