# HG changeset patch # User Thibaut Girka # Date 1329058232 -3600 # Node ID 91eb0afcb1e3ababa210c1cf89ec0f2f2850e746 # Parent b6c068c8f7f2d9549403317406bce1cc5f00a201 Fix time stop handling. diff --git a/pytouhou/vm/eclrunner.py b/pytouhou/vm/eclrunner.py --- 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