diff pytouhou/vm/anmrunner.py @ 243:3893a6fc66f1

Update sprite's property even while waiting
author Thibaut Girka <thib@sitedethib.com>
date Mon, 02 Jan 2012 15:54:19 +0100
parents 02de1563fa18
children d3ba32a9096e
line wrap: on
line diff
--- a/pytouhou/vm/anmrunner.py
+++ b/pytouhou/vm/anmrunner.py
@@ -77,10 +77,8 @@ class ANMRunner(object):
                     callback(self, *args)
                     sprite._changed = True
 
-        if self.waiting:
-            return True
-
-        self.frame += 1
+        if not self.waiting:
+            self.frame += 1
 
         # Update sprite
         sprite.frame += 1