X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=init.c;h=f434844e7f190959f35433a6939803fe57353223;hp=d22da5ebe8d3b6c1af0bfd34c8fd2007d143669e;hb=0bbfe6baf70802bd3a54071f7f2e8d3808a202d2;hpb=83fb64b5a817de3f1023c79ab2319d01d9dce9ae diff --git a/init.c b/init.c index d22da5e..f434844 100644 --- a/init.c +++ b/init.c @@ -25,7 +25,7 @@ void initialise(void) if (!(locations[i].description.big == 0 || tkey[i] == 0)) { int k = tkey[i]; if (T_TERMINATE(travel[k])) - conditions[i] |= (1 << COND_FORCED); + conditions[i] |= (1 << COND_FORCED); } game.atloc[i] = 0; } @@ -56,11 +56,11 @@ void initialise(void) * not yet found, so we know when to close the cave. */ game.tally = 0; for (int treasure = 1; treasure <= NOBJECTS; treasure++) { - if (objects[treasure].is_treasure) { - if (objects[treasure].inventory != 0) - game.prop[treasure] = -1; - game.tally = game.tally - game.prop[treasure]; - } + if (objects[treasure].is_treasure) { + if (objects[treasure].inventory != 0) + game.prop[treasure] = -1; + game.tally = game.tally - game.prop[treasure]; + } } /* Clear the hint stuff. game.hintlc[i] is how long he's been at LOC