# HG changeset patch # User Thibaut Girka # Date 1317743532 -7200 # Node ID a61c962657799097274d90a45f24777910436f64 # Parent 96c30ffd9b876894f0ead6911f0a1595371009b0 Fix a crash with ECL instruction 25 diff -r 96c30ffd9b87 -r a61c96265779 pytouhou/vm/eclrunner.py --- a/pytouhou/vm/eclrunner.py Mon Oct 03 22:42:26 2011 +0200 +++ b/pytouhou/vm/eclrunner.py Tue Oct 04 17:52:12 2011 +0200 @@ -341,7 +341,7 @@ @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)