X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=init.c;h=cabe574a588b4557ffd329ad16cab91e6369dea8;hb=cfcb1a6ec64a5c4fc54255696aa7469787f22c6b;hp=a0d8f1cc6cc9a00d832d543b032245157e2b7e37;hpb=ed80d6dd2f9aa01fd21efd512c431e6ca5d0df0e;p=open-adventure.git diff --git a/init.c b/init.c index a0d8f1c..cabe574 100644 --- a/init.c +++ b/init.c @@ -4,8 +4,8 @@ #include #include "advent.h" -#include "funcs.h" #include "database.h" +#include "newdb.h" /* * Initialisation @@ -184,7 +184,7 @@ void initialise(void) for (i=1; i<=LOCSIZ; i++) { game.abbrev[i]=0; - if (!(LTEXT[i] == 0 || KEY[i] == 0)) { + if (!(long_location_descriptions[i] == 0 || KEY[i] == 0)) { k=KEY[i]; if(MOD(labs(TRAVEL[k]),1000) == 1)COND[i]=2; } @@ -219,7 +219,7 @@ void initialise(void) * not yet found, so we know when to close the cave. */ game.tally=0; for (i=MINTRS; i<=MAXTRS; i++) { - if(PTEXT[i] != 0) + if(object_descriptions[i].inventory != 0) game.prop[i]= -1; game.tally=game.tally-game.prop[i]; }