Bullet.step: Need to re-check finished in a second action iteration in case an action...
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Sat, 24 Apr 2010 08:55:18 +0000 (01:55 -0700)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Sat, 24 Apr 2010 08:55:18 +0000 (01:55 -0700)
bulletml/impl.py

index a2e8decebd9f970dab01ee170e0e013bf1ee7972..0c40f1ebd2596752ab10861f9042cdb6c82cfd31 100644 (file)
@@ -223,6 +223,9 @@ class Bullet(object):
         for action in self.actions:
             action.step(self, created)
             finished = finished and action.finished
+        if finished:
+            for action in self.actions:
+                finished = finished and action.finished
         self.finished = finished
 
         speed = self.speed