mirror of
https://github.com/wassname/cardsforscience.git
synced 2026-06-27 17:29:55 +08:00
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:
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user