lib/gamnit: fix clock starting at first usage, not with the program
authorAlexis Laferrière <alexis.laf@xymus.net>
Mon, 1 Feb 2016 16:47:46 +0000 (11:47 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Wed, 3 Feb 2016 15:33:01 +0000 (10:33 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/gamnit/flat.nit

index 06ac8df..1936763 100644 (file)
@@ -128,7 +128,7 @@ redef class App
        # UI sprites to draw in reference to `ui_camera`, over world `sprites`
        var ui_sprites: Sequence[Sprite] = new List[Sprite]
 
-       private var clock = new Clock
+       private var clock = new Clock is lazy
 
        redef fun on_create
        do