# HG changeset patch # User Thibaut Girka # Date 1315664034 -7200 # Node ID 81e05aed8db52118e4c9cae021c8c6d7608fb788 # Parent 9d7129ee2c4f956e3232284a05f12c8acf28730f Fix bullets diff --git a/pytouhou/game/bullet.py b/pytouhou/game/bullet.py --- a/pytouhou/game/bullet.py +++ b/pytouhou/game/bullet.py @@ -110,8 +110,6 @@ class Bullet(object): self.x += dx self.y += dy - self.frame += 1 - if not self._anmrunner.run_frame(): self.launch() @@ -156,7 +154,7 @@ class Bullet(object): if sprite.automatic_orientation: sprite._changed = True if self.frame % frame == 0: - if count > 0: + if count >= 0: self.attributes[1] -= 1 else: self.flags ^= 32 @@ -183,7 +181,7 @@ class Bullet(object): if sprite.automatic_orientation: sprite._changed = True - if count > 0: + if count >= 0: self.speed_interpolator = Interpolator((self.speed,), self.frame, (0.,), self.frame + frame - 1) else: