changeset 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 1d3c8c7473a2
children 2b7f69ad9ccd
files pytouhou/vm/anmrunner.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
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