changeset 24:93aa1b55d97c

Fix a deadlock :(
author Thibaut Girka <thib@sitedethib.com>
date Fri, 12 Aug 2011 19:24:53 +0200
parents 444ac7bca7bc
children cc864aadc733
files pytouhou/game/eclrunner.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/game/eclrunner.py
+++ b/pytouhou/game/eclrunner.py
@@ -51,6 +51,7 @@ class ECLRunner(object):
                     print('Warning: unhandled opcode %d!' % instr_type) #TODO
                 else:
                     callback(*unpack('<' + format, args))
+            if frame <= self.frame:
                 self.instruction_pointer += 1
 
         self.frame += 1