changeset 74:adac26098408

Handle variables in set_pos instruction (Daiyousei...)
author Thibaut Girka <thib@sitedethib.com>
date Sun, 28 Aug 2011 11:20:35 +0200
parents e4af16a019d3
children b3bd421bb895
files pytouhou/vm/eclrunner.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py
+++ b/pytouhou/vm/eclrunner.py
@@ -314,7 +314,7 @@ class ECLRunner(object):
 
     @instruction(43)
     def set_pos(self, x, y, z):
-        self._enemy.set_pos(x, y, z)
+        self._enemy.set_pos(self._getval(x), self._getval(y), self._getval(z))
 
 
     @instruction(45)