X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=init.c;fp=init.c;h=94c972d3d6597584e64af0d2b3562f03e3481c3d;hp=a620b2ca2aaa73603410f41f314a8036d3bbfdf0;hb=c11938aed5e261ac40a562781325996628663610;hpb=258b7703f22045be1b6e9fb74bd3391ed94ed86b diff --git a/init.c b/init.c index a620b2c..94c972d 100644 --- a/init.c +++ b/init.c @@ -56,8 +56,9 @@ int initialise(void) for (int i = 1; i <= NLOCATIONS; i++) { if (!(locations[i].description.big == 0 || tkey[i] == 0)) { int k = tkey[i]; - if (travel[k].motion == HERE) + if (travel[k].motion == HERE) { conditions[i] |= (1 << COND_FORCED); + } } } @@ -77,8 +78,9 @@ int initialise(void) for (int i = 1; i <= NOBJECTS; i++) { int k = NOBJECTS + 1 - i; game.objects[k].fixed = objects[k].fixd; - if (objects[k].plac != 0 && objects[k].fixd <= 0) + if (objects[k].plac != 0 && objects[k].fixd <= 0) { drop(k, objects[k].plac); + } } /* Treasure props are initially STATE_NOTFOUND, and are set to @@ -88,8 +90,9 @@ int initialise(void) for (int treasure = 1; treasure <= NOBJECTS; treasure++) { if (objects[treasure].is_treasure) { ++game.tally; - if (objects[treasure].inventory != 0) + if (objects[treasure].inventory != 0) { PROP_SET_NOT_FOUND(treasure); + } } } game.conds = setbit(COND_HBASE);