Mercurial > touhou
comparison pytouhou/game/eclrunner.py @ 24:93aa1b55d97c
Fix a deadlock :(
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Fri, 12 Aug 2011 19:24:53 +0200 |
parents | 444ac7bca7bc |
children | e3ba2fa966f6 |
comparison
equal
deleted
inserted
replaced
23:444ac7bca7bc | 24:93aa1b55d97c |
---|---|
49 format, callback = self.implementation[instr_type] | 49 format, callback = self.implementation[instr_type] |
50 except KeyError: | 50 except KeyError: |
51 print('Warning: unhandled opcode %d!' % instr_type) #TODO | 51 print('Warning: unhandled opcode %d!' % instr_type) #TODO |
52 else: | 52 else: |
53 callback(*unpack('<' + format, args)) | 53 callback(*unpack('<' + format, args)) |
54 if frame <= self.frame: | |
54 self.instruction_pointer += 1 | 55 self.instruction_pointer += 1 |
55 | 56 |
56 self.frame += 1 | 57 self.frame += 1 |
57 | 58 |