Mercurial > touhou
diff pytouhou/vm/eclrunner.py @ 158:7769ce7be03c
Minor cleanup
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Mon, 10 Oct 2011 18:56:13 +0200 |
parents | ca6f8b3f739d |
children | 4684d311a32d |
line wrap: on
line diff
--- a/pytouhou/vm/eclrunner.py +++ b/pytouhou/vm/eclrunner.py @@ -462,9 +462,6 @@ class ECLRunner(object): angle = self._game.prng.rand_double() * (max_angle - min_angle) + min_angle sa, ca = sin(angle), cos(angle) - distx = min(96.0, (maxx - minx) / 2.) - disty = min(96.0, (maxy - miny) / 2.) - if self._enemy.x > maxx - 96.0: ca = -abs(ca) elif self._enemy.x < minx + 96.0: