Mercurial > touhou
diff pytouhou/ui/gamerenderer.pyx @ 304:f3099ebf4f61
Update attribute names to reflect the actual interface.
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Tue, 13 Mar 2012 18:38:14 +0100 |
parents | 94c636f8f863 |
children | 52d791bb7c32 |
line wrap: on
line diff
--- a/pytouhou/ui/gamerenderer.pyx +++ b/pytouhou/ui/gamerenderer.pyx @@ -80,8 +80,8 @@ cdef class GameRenderer(Renderer): self.setup_camera(0, 0, 1) glDisable(GL_FOG) - self.render_elements(chain(*(enemy.objects() for enemy in game.enemies if enemy._visible))) - self.render_elements(enemy for enemy in game.enemies if enemy._visible) + self.render_elements(chain(*(enemy.objects() for enemy in game.enemies if enemy.visible))) + self.render_elements(enemy for enemy in game.enemies if enemy.visible) self.render_elements(game.effects) self.render_elements(chain(game.players_bullets, game.lasers_sprites(),