# HG changeset patch # User Thibaut Girka # Date 1327356055 -3600 # Node ID 729382f57ad08ca2122218aa23b6baf7fb6e0fde # Parent dd621ad72bebf1b8832f30c2e56c0c4f3ef76800 Fix set_visible. diff --git a/pytouhou/vm/eclrunner.py b/pytouhou/vm/eclrunner.py --- a/pytouhou/vm/eclrunner.py +++ b/pytouhou/vm/eclrunner.py @@ -981,9 +981,11 @@ class ECLRunner(object): @instruction(132) def set_visible(self, value): - self._enemy._visible = bool(value) - if self._enemy._sprite: - self._enemy._sprite._removed = bool(value) + self._enemy._visible = not bool(value) + if not self._enemy._visible: + if self._enemy._sprite: + self._enemy._sprite._removed = True + self._enemy.aux_anm = 8 * [None] @instruction(131)