diff pytouhou/game/game.py @ 259:3631abb6e95b

Minor performance improvement.
author Thibaut Girka <thib@sitedethib.com>
date Sun, 22 Jan 2012 22:08:36 +0100
parents 620134bc51f4
children f037bca24f2d
line wrap: on
line diff
--- a/pytouhou/game/game.py
+++ b/pytouhou/game/game.py
@@ -271,7 +271,7 @@ class Game(object):
         self.players_bullets = [bullet for bullet in self.players_bullets
                             if not bullet._removed]
         self.cancelled_bullets = [bullet for bullet in self.cancelled_bullets
-                            if bullet.is_visible(self.width, self.height)]
+                            if not bullet._removed]
 
         # Filter out-of-scren items
         items = []