Mercurial > touhou
diff pytouhou/vm/anmrunner.py @ 239:901489c21d19
Fix a few crashes in the anmrunner, disable fullscreen switch, change alt+Fx to shift+Fx
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 01 Jan 2012 21:12:50 +0100 |
parents | 0e1762b1ab9f |
children | 02de1563fa18 |
line wrap: on
line diff
--- a/pytouhou/vm/anmrunner.py +++ b/pytouhou/vm/anmrunner.py @@ -48,11 +48,10 @@ class ANMRunner(object): new_ip = self.script.interrupts.get(-1, None) if new_ip is None: return False - else: - self.instruction_pointer = new_ip - self.frame, opcode, args = self.script[self.instruction_pointer] - self.waiting = False - return True + self.instruction_pointer = new_ip + self.frame, opcode, args = self.script[self.instruction_pointer] + self.waiting = False + return True def run_frame(self):