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 a2e8dec..0c40f1e 100644 (file)
@@ -223,6 +223,9 @@ class Bullet(object):
         for action in self.actions:
             action.step(self, created)
             finished = finished and action.finished
         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
         self.finished = finished
 
         speed = self.speed