Ensure the ZZZZ magic word is reproducible.
This happens by making the SEED command also regenerate the magic word.
This commit is contained in:
parent
f2043034e5
commit
f9eca41f3a
3 changed files with 5 additions and 3 deletions
2
main.c
2
main.c
|
@ -160,6 +160,8 @@ static bool fallback_handler(signed char *buf)
|
||||||
if (sscanf(buf, "seed %ld", &sv) == 1) {
|
if (sscanf(buf, "seed %ld", &sv) == 1) {
|
||||||
set_seed(sv);
|
set_seed(sv);
|
||||||
printf("Seed set to %ld\n", 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 true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -7,8 +7,8 @@ You are standing at the end of a road before a small brick building.
|
||||||
Around you is a forest. A small stream flows out of the building and
|
Around you is a forest. A small stream flows out of the building and
|
||||||
down a gully.
|
down a gully.
|
||||||
|
|
||||||
> seed 1495752222
|
> seed 1494912171
|
||||||
Seed set to 1495752222
|
Seed set to 1494912171
|
||||||
|
|
||||||
You're in front of building.
|
You're in front of building.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
## Death by dwarf.
|
## Death by dwarf.
|
||||||
n
|
n
|
||||||
seed 1495752222
|
seed 1494912171
|
||||||
in
|
in
|
||||||
take keys
|
take keys
|
||||||
take lamp
|
take lamp
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue