changeset 259:3631abb6e95b

Minor performance improvement.
author Thibaut Girka <thib@sitedethib.com>
date Sun, 22 Jan 2012 22:08:36 +0100
parents 620134bc51f4
children e22e0d73f614
files pytouhou/game/game.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 = []