Mercurial > touhou
diff pytouhou/vm/eclrunner.py @ 489:59bd29568753
Remove identity lambda for interpolators, improves performances slightly.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 04 Oct 2013 11:19:04 +0200 |
parents | 06f0eeb519bb |
children | 6be9c99a3a24 |
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py +++ b/pytouhou/vm/eclrunner.py @@ -505,7 +505,7 @@ class ECLRunner(object): def move_to_linear(self, duration, x, y, z): self._enemy.move_to(duration, self._getval(x), self._getval(y), self._getval(z), - lambda x: x) + None) @instruction(57) @@ -524,7 +524,7 @@ class ECLRunner(object): @instruction(61) def stop_in(self, duration): - self._enemy.stop_in(duration, lambda x: x) + self._enemy.stop_in(duration, None) @instruction(63)