cursor trail length override

This commit is contained in:
yugecin
2016-10-01 12:14:39 +02:00
parent c7538ef348
commit a7e1a2e32f
4 changed files with 28 additions and 0 deletions

View File

@@ -186,6 +186,10 @@ public class Cursor {
removeCount = trail.size() - max;
}
if (Dancer.cursortraillength > 20) {
removeCount = trail.size() - Dancer.cursortraillength;
}
// remove points from the lists
for (int i = 0; i < removeCount && !trail.isEmpty(); i++)
trail.remove();