This commit is contained in:
Anuken
2022-01-02 11:25:38 -05:00
parent 8f17fb43a6
commit eef1d68d4c
+2 -2
View File
@@ -97,12 +97,12 @@ public class Trail{
/** Removes the last point from the trail at intervals. */ /** Removes the last point from the trail at intervals. */
public void shorten(){ public void shorten(){
if((counter += Time.delta) >= 0.99f){ if((counter += Time.delta) >= 1f){
if(points.size >= 3){ if(points.size >= 3){
points.removeRange(0, 2); points.removeRange(0, 2);
} }
counter = 0f; counter %= 1f;
} }
} }