diff pytouhou/vm/eclrunner.py @ 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 7c1f20407b3e
children b3bd421bb895
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)