From: Alexis Laferrière Date: Mon, 1 Feb 2016 16:47:46 +0000 (-0500) Subject: lib/gamnit: fix clock starting at first usage, not with the program X-Git-Url: http://nitlanguage.org lib/gamnit: fix clock starting at first usage, not with the program Signed-off-by: Alexis Laferrière --- diff --git a/lib/gamnit/flat.nit b/lib/gamnit/flat.nit index 06ac8df..1936763 100644 --- a/lib/gamnit/flat.nit +++ b/lib/gamnit/flat.nit @@ -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