X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=main.c;h=345a7b23343daa4d55b5ab96bdf43036498c612d;hb=e65132a108abb07e6ae768c3fb61510a59f80a8c;hp=2d207d86f8c1685f5ecaeb8a0df17660c21a5600;hpb=f815299a2a97656b0f4ea0793c2207c2437888f6;p=open-adventure.git diff --git a/main.c b/main.c index 2d207d8..345a7b2 100644 --- a/main.c +++ b/main.c @@ -25,7 +25,7 @@ #define DIM(a) (sizeof(a)/sizeof(a[0])) -FILE *logfp = NULL, *rfp = NULL; +FILE *logfp = NULL; bool oldstyle = false; bool prompt = true; @@ -61,8 +61,9 @@ int main(int argc, char *argv[]) /* Options. */ #ifndef ADVENT_NOSAVE - const char* opts = "l:or"; + const char* opts = "l:or:"; const char* usage = "Usage: %s [-l logfilename] [-o] [-r restorefilename]\n"; + FILE *rfp = NULL; #else const char* opts = "l:o"; const char* usage = "Usage: %s [-l logfilename] [-o]\n"; @@ -141,8 +142,6 @@ static bool fallback_handler(char *buf) printf("Seed set to %ld\n", sv); // autogenerated, so don't charge user time for it. --game.turns; - // here we reconfigure any global game state that uses random numbers - make_zzword(game.zzword); return true; } return false;