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
d39325f963
commit
c41dd35268
3 changed files with 66 additions and 0 deletions
2
main.c
2
main.c
|
@ -148,6 +148,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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue