mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-13 01:07:30 +07:00
Fixed trail not shortening
This commit is contained in:
@ -106,8 +106,8 @@ public class Trail{
|
|||||||
int count = (int)(counter += Time.delta);
|
int count = (int)(counter += Time.delta);
|
||||||
counter -= count;
|
counter -= count;
|
||||||
|
|
||||||
if(points.size + ((count - 1) * 3) > length * 3 && points.size > 0){
|
if(count > 0 && points.size > 0){
|
||||||
points.removeRange(0, Math.min(3 * count - 1, points.size - 1));
|
points.removeRange(0, Math.min(count * 3 - 1, points.size - 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user