# HG changeset patch # User Thibaut Girka # Date 1341695763 -7200 # Node ID b5ab2ad06de8879d0ba23035568f5c3c5b31311c # Parent 89ee09453906d75d4897f0d854cc40415308441e Fix bullet cancellation... again... diff --git a/pytouhou/game/bullet.pyx b/pytouhou/game/bullet.pyx --- a/pytouhou/game/bullet.pyx +++ b/pytouhou/game/bullet.pyx @@ -150,16 +150,8 @@ cdef class Bullet(object): self.anmrunner.run_frame() self.dx, self.dy = self.dx / 2., self.dy / 2. - # Change update method self.state = CANCELLED - # Do not use this one for collisions anymore - if self.player_bullet: - self._game.players_bullets.remove(self) - else: - self._game.bullets.remove(self) - self._game.cancelled_bullets.append(self) - def update(Bullet self): if self.anmrunner is not None and not self.anmrunner.run_frame():