diff pytouhou/game/bullet.py @ 255:a0d6b1915591

Fix bullet removal condition.
author Thibaut Girka <thib@sitedethib.com>
date Sun, 22 Jan 2012 19:47:40 +0100
parents cb329dca4758
children 507dfd6efe0c
line wrap: on
line diff
--- a/pytouhou/game/bullet.py
+++ b/pytouhou/game/bullet.py
@@ -30,6 +30,7 @@ class Bullet(object):
         self._removed = False
         self._launched = False
         self._bullet_type = bullet_type
+        self._was_visible = True
 
         if hitbox:
             self.hitbox_half_size = (hitbox[0] / 2., hitbox[1] / 2.)