Fix things so seed doesn't cost clock time.

This commit is contained in:
Eric S. Raymond 2017-05-30 20:08:55 -04:00
parent b80d1779e6
commit 184e981be3
4 changed files with 1934 additions and 1 deletions

2
main.c
View file

@ -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);
// 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)+MESH*2;
return true;