Seed command fully implemented but apparently buggy.
Dwarf appearance is not yet reproducible.
This commit is contained in:
parent
65c081a0ac
commit
cf219e920b
4 changed files with 19 additions and 9 deletions
12
actions1.c
12
actions1.c
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue