comparison 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
comparison
equal deleted inserted replaced
242:1d3c8c7473a2 243:3893a6fc66f1
75 logger.warn('unhandled opcode %d (args: %r)', opcode, args) 75 logger.warn('unhandled opcode %d (args: %r)', opcode, args)
76 else: 76 else:
77 callback(self, *args) 77 callback(self, *args)
78 sprite._changed = True 78 sprite._changed = True
79 79
80 if self.waiting: 80 if not self.waiting:
81 return True 81 self.frame += 1
82
83 self.frame += 1
84 82
85 # Update sprite 83 # Update sprite
86 sprite.frame += 1 84 sprite.frame += 1
87 85
88 if sprite.rotations_speed_3d != (0., 0., 0.): 86 if sprite.rotations_speed_3d != (0., 0., 0.):