Ensure the ZZZZ magic word is reproducible.
[open-adventure.git] / main.c
diff --git a/main.c b/main.c
index 7834084eac3ed27472688c23bade12ac7475eafc..d84e4f2ad85a9aa54a1d624162e273b91a401251 100644 (file)
--- a/main.c
+++ b/main.c
@@ -160,6 +160,8 @@ static bool fallback_handler(signed char *buf)
     if (sscanf(buf, "seed %ld", &sv) == 1) {
        set_seed(sv);
        printf("Seed set to %ld\n", sv);
+       // here we reconfigure any global game state that uses random numbers
+       ZZWORD=RNDVOC(3,0)+MESH*2;
        return true;
     }
     return false;