Mercurial > touhou
diff pytouhou/game/player.py @ 335:2350147cf043
Fix bullet cancellation and removal
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sun, 01 Jul 2012 11:43:38 +0200 |
parents | 1b4f04b08729 |
children | 7a05edbab88a |
line wrap: on
line diff
--- a/pytouhou/game/player.py +++ b/pytouhou/game/player.py @@ -256,10 +256,7 @@ class Player(object): self.sprite.changed = True if time > 30: - for bullet in self._game.bullets: - bullet.cancel() - for laser in self._game.lasers: - laser.cancel() + self._game.cancel_bullets() if time > 90: # start the bullet hell again self.death_time = 0