X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=main.c;h=8c8b47c558033adbc913cc4bf64c78927ec6f471;hb=e619c4104854708550b9fb4a9f3b1aebec4f5816;hp=b788c618e65428352c0a5f9be4a619ecb194baaa;hpb=ef97d579ea8974bfd42b9c5b0d5c9d1983e99448;p=open-adventure.git diff --git a/main.c b/main.c index b788c61..8c8b47c 100644 --- a/main.c +++ b/main.c @@ -116,6 +116,10 @@ int main(int argc, char *argv[]) } else { restore(rfp); } +#else + game.novice = yes(arbitrary_messages[WELCOME_YOU], arbitrary_messages[CAVE_NEARBY], arbitrary_messages[NO_MESSAGE]); + if (game.novice) + game.limit = NOVICELIMIT; #endif if (settings.logfp) @@ -1050,6 +1054,7 @@ L2600: } if (strcmp(input, "") != 0) break; + free(input); } strncpy(inputbuf, input, LINESIZE - 1);