From a1b7226837d61f1799dab2142fba5bcc50bae7e4 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 14 Jan 2018 13:14:14 +0100 Subject: [PATCH] activateSafety needs to set safetyseed to something --- game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game.cpp b/game.cpp index 41b5e962..d0f5836c 100644 --- a/game.cpp +++ b/game.cpp @@ -156,7 +156,7 @@ ld hrandf() { int hrandstate() { mt19937 r2 = r; - return r2() % 1000000; + return r2() & HRANDMAX; } void initcell(cell *c) { @@ -6017,7 +6017,7 @@ void activateSafety(eLand l) { l = laCrossroads; firstland = l; safetyland = l; - safetyseed = 0; + safetyseed = hrandpos(); clear_euland(firstland); safety = true; avengers = 0; clearMemory();