diff pytouhou/game/game.py @ 446:3a33ed7f3b85

Make pytouhou.game.item an extension type.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 17 Aug 2013 06:01:45 +0200
parents b0abb05811f7
children
line wrap: on
line diff
--- a/pytouhou/game/game.py
+++ b/pytouhou/game/game.py
@@ -121,8 +121,7 @@ class Game(object):
 
     def autocollect(self, player):
         for item in self.items:
-            if not item.player:
-                item.autocollect(player)
+            item.autocollect(player)
 
 
     def cancel_bullets(self):