projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix things so seed doesn't cost clock time.
[open-adventure.git]
/
main.c
diff --git
a/main.c
b/main.c
index 653b744b0040b8b8a330dc15ac197463f8eb53e5..ea620fce3fa26c232a65cc956daad25862d29511 100644
(file)
--- a/
main.c
+++ b/
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);
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;
// here we reconfigure any global game state that uses random numbers
ZZWORD=RNDVOC(3,0);
return true;