Mercurial > touhou
changeset 355:b5ab2ad06de8
Fix bullet cancellation... again...
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 07 Jul 2012 23:16:03 +0200 |
parents | 89ee09453906 |
children | a5595de3fe7e |
files | pytouhou/game/bullet.pyx |
diffstat | 1 files changed, 0 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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():