Mercurial > touhou
changeset 55:de358a7684c8
Fix a few bugs
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Tue, 23 Aug 2011 00:10:35 +0200 |
parents | b383b09bc735 |
children | 299de3a9b69f |
files | pytouhou/game/eclrunner.py |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/pytouhou/game/eclrunner.py +++ b/pytouhou/game/eclrunner.py @@ -135,17 +135,18 @@ class ECLRunner(object): if -10012 <= variable_id <= -10001: self.variables[int(-10001-variable_id)] = value elif -10025 <= variable_id <= -10013: - if value == -10015: + if variable_id == -10015: self._enemy.x = value - elif value == -10016: + elif variable_id == -10016: self._enemy.y = value - elif value == -10017: + elif variable_id == -10017: self._enemy.z = value - elif value == -10022: + elif variable_id == -10022: self._enemy.frame = value - elif value == -10024: + elif variable_id == -10024: self._enemy.life = value - raise IndexError #TODO: proper exception + else: + raise IndexError #TODO: proper exception else: raise IndexError #TODO: proper exception