# HG changeset patch # User Thibaut Girka # Date 1315348152 -7200 # Node ID 92772413b5a6e5521c95d8afac0908c71b69342d # Parent 732c64662f8771fec8f87f351e7146bc65ea011f Fix special bullet function/flags handling diff --git a/pytouhou/game/bullet.py b/pytouhou/game/bullet.py --- a/pytouhou/game/bullet.py +++ b/pytouhou/game/bullet.py @@ -142,7 +142,7 @@ class Bullet(object): acceleration, angular_speed = self.attributes[4:6] self.speed += acceleration self.angle += angular_speed - if self.frame == frame: + if self.frame != 0 and self.frame % frame == 0: if count > 0: self.attributes[1] -= 1 else: @@ -151,7 +151,7 @@ class Bullet(object): #TODO: check frame, count = self.attributes[0:2] angle, speed = self.attributes[4:6] - if frame == self.frame: + if self.frame != 0 and self.frame % frame == 0: count = count - 1 if self.flags & 64: