* chest's eventual location inside the maze. This loc is saved
* in chloc for ref. The dead end in the other maze has its
* loc stored in chloc2. */
- .dloc[6] = LOC_DEADEND12,
- .chloc = LOC_DEADEND12,
+ .dloc[6] = LOC_MAZEEND12,
+ .chloc = LOC_MAZEEND12,
.chloc2 = LOC_DEADEND13,
.abbnum = 5,
.clock1 = WARNTIME,
.foobar = WORD_EMPTY,
};
-long initialise(void)
+int initialise(void)
{
if (settings.oldstyle)
printf("Initialising...\n");
srand(time(NULL));
- long seedval = (long)rand();
+ int seedval = (int)rand();
set_seed(seedval);
for (int i = 1; i <= NOBJECTS; i++) {
if (!(locations[i].description.big == 0 ||
tkey[i] == 0)) {
int k = tkey[i];
- if (T_TERMINATE(travel[k]))
+ if (travel[k].motion == HERE)
conditions[i] |= (1 << COND_FORCED);
}
}
game.tally = game.tally - game.prop[treasure];
}
}
- game.conds = setbit(11);
+ game.conds = setbit(COND_HBASE);
return seedval;
}