Mercurial > touhou
changeset 284:91eb0afcb1e3
Fix time stop handling.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 12 Feb 2012 15:50:32 +0100 |
parents | b6c068c8f7f2 |
children | 2100276c289d |
files | pytouhou/vm/eclrunner.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py +++ b/pytouhou/vm/eclrunner.py @@ -41,6 +41,9 @@ class ECLMainRunner(object): def run_iter(self): + if not self._game.boss: + self.time_stopped = False + while True: try: frame, sub, instr_type, args = self._ecl.main[self.instruction_pointer] @@ -63,9 +66,6 @@ class ECLMainRunner(object): self.processes[:] = (process for process in self.processes if process.run_iteration()) - if not self._game.boss: - self.time_stopped = False - if not self.time_stopped: self.frame += 1