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
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ protected void AddTrail(Vector2 position)
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;
addPart(lastPosition.Value);