# HG changeset patch # User Thibaut Girka # Date 1317743532 -7200 # Node ID a61c962657799097274d90a45f24777910436f64 # Parent 96c30ffd9b876894f0ead6911f0a1595371009b0 Fix a crash with ECL instruction 25 diff --git a/pytouhou/vm/eclrunner.py b/pytouhou/vm/eclrunner.py --- 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)