changeset 247:fb3a263213d1

Fix instruction 70 to always fire to the right.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 15 Jan 2012 18:09:25 +0100
parents cb329dca4758
children 77b83064b57e
files pytouhou/game/enemy.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pytouhou/game/enemy.py
+++ b/pytouhou/game/enemy.py
@@ -132,7 +132,7 @@ class Enemy(object):
             launch_angle += self.get_player_angle(player, launch_pos)
         if type_ in (69, 70, 71, 74):
             angle = 2. * pi / bullets_per_shot
-        if type_ == 71 and bullets_per_shot % 2 or type_ == 69 and not bullets_per_shot % 2:
+        if type_ == 71 and bullets_per_shot % 2 or type_ in (69, 70) and not bullets_per_shot % 2:
             launch_angle += pi / bullets_per_shot
         if type_ != 75:
             launch_angle -= angle * (bullets_per_shot - 1) / 2.