shoot: headless run forces a `srand_from(0)`
authorJean Privat <jean@pryen.org>
Mon, 17 Nov 2014 18:45:51 +0000 (13:45 -0500)
committerJean Privat <jean@pryen.org>
Mon, 17 Nov 2014 18:45:51 +0000 (13:45 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

examples/shoot/src/shoot_logic.nit

index 838c78b..824af57 100644 (file)
@@ -1052,6 +1052,7 @@ end
 
 fun headless_run
 do
+       srand_from 0
        print "Headless run"
        # Only run the playscene
        var scene = new PlayScene(80000,60000)