Mercurial > touhou
changeset 147:a61c96265779
Fix a crash with ECL instruction 25
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Tue, 04 Oct 2011 17:52:12 +0200 |
parents | 96c30ffd9b87 |
children | 6460814b68ea |
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 @@ -341,7 +341,7 @@ class ECLRunner(object): @instruction(25) def get_direction(self, variable_id, x1, y1, x2, y2): #TODO: takes only floats. - self._setval(variable_id, math.atan2(self._getval(y2) - self._getval(y1), self._getval(x2) - self._getval(x1))) + self._setval(variable_id, atan2(self._getval(y2) - self._getval(y1), self._getval(x2) - self._getval(x1))) @instruction(27)