Fix things so seed doesn't cost clock time.
This commit is contained in:
parent
6b6cfa37f1
commit
6a6670e3ca
4 changed files with 5 additions and 3 deletions
2
main.c
2
main.c
|
@ -156,6 +156,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);
|
||||
// autogenerated, so don't charge user time for it.
|
||||
--TURNS;
|
||||
// here we reconfigure any global game state that uses random numbers
|
||||
ZZWORD=RNDVOC(3,0);
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue