From: Joe Wreschnig Date: Sat, 24 Apr 2010 08:55:18 +0000 (-0700) Subject: Bullet.step: Need to re-check finished in a second action iteration in case an action... X-Git-Url: https://git.yukkurigames.com/?p=python-bulletml.git;a=commitdiff_plain;h=4c64c8e05ac3b3c452255a4987bd67a2892a8007;hp=62705a2613f321c698ba7194325a53d1dd0dc27a Bullet.step: Need to re-check finished in a second action iteration in case an action replaced itself with its parent. --- diff --git a/bulletml/impl.py b/bulletml/impl.py index a2e8dec..0c40f1e 100644 --- a/bulletml/impl.py +++ b/bulletml/impl.py @@ -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