changeset 269:729382f57ad0

Fix set_visible.
author Thibaut Girka <thib@sitedethib.com>
date Mon, 23 Jan 2012 23:00:55 +0100
parents dd621ad72beb
children 7a9135b88853
files pytouhou/vm/eclrunner.py
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)