Set the number of events to delete correctly

The code was only freeing up to 20 or so events, depending on how many particles the last non-visible event had.  Correctly setting the index to delete-up-to to be the highest non-visible event.
This commit is contained in:
cgeorg
2014-08-11 17:10:01 -04:00
parent 2ed2be50fd
commit 46cda56701
+1 -1
View File
@@ -297,7 +297,7 @@ var detector =
if (detector.events.list[e].alpha > 0) {
detector.events.list[e].draw(duration);
} else {
del = detector.events.list[e].count;
del = e;
}
}