X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=init.c;h=5372714566f336ddd0e65090ea5afee59f94195b;hb=7eaefce61d74fbc73daabd3f42f048038366b5ad;hp=812e943e6dc69589758c19739a388f7903aa0fd1;hpb=8cc5ee54127423c75814a6b5cc61d48d4075331b;p=open-adventure.git diff --git a/init.c b/init.c index 812e943..5372714 100644 --- a/init.c +++ b/init.c @@ -10,6 +10,12 @@ * Initialisation */ +struct settings_t settings = { + .logfp = NULL, + .oldstyle = false, + .prompt = true +}; + struct game_t game = { .dloc[1] = LOC_KINGHALL, .dloc[2] = LOC_WESTBANK, @@ -41,7 +47,7 @@ struct game_t game = { long initialise(void) { - if (oldstyle) + if (settings.oldstyle) printf("Initialising...\n"); srand(time(NULL));