Seed command fully implemented but apparently buggy.

Dwarf appearance is not yet reproducible.
This commit is contained in:
Eric S. Raymond 2017-05-24 09:06:41 -04:00
parent 65c081a0ac
commit cf219e920b
4 changed files with 19 additions and 9 deletions

View file

@ -625,6 +625,14 @@ L8340: if(!AT(RESER) && LOC != FIXED[RESER]-1) return(2011);
RSPEAK(241);
return(2);
L8350: printf("I see a SEED command. %s\n", raw_input);
return(2);
/* Seed. Expected in game logs to replicate the LCG state */
L8350: {
long sv;
int n;
n = sscanf(raw_input, "seed %ld\n", &sv);
if (n >= 1)
set_seed(sv);
return(2);
}
}