diff pytouhou/ui/gamerenderer.pyx @ 341:61caded6b4f5

Clean music playback API a little.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 04 Jul 2012 23:05:21 +0200
parents 16ed1ab1e14b
children 2c4589370cc6
line wrap: on
line diff
--- a/pytouhou/ui/gamerenderer.pyx
+++ b/pytouhou/ui/gamerenderer.pyx
@@ -29,7 +29,8 @@ cdef class GameRenderer(Renderer):
 
     def __init__(self, resource_loader, game=None, background=None):
         Renderer.__init__(self, resource_loader)
-        self.load_game(game, background)
+        if game:
+            self.load_game(game, background)
 
 
     cpdef load_game(self, game=None, background=None):