More macro abstraction of the travel opcodes.

This commit is contained in:
Eric S. Raymond 2017-06-28 08:26:36 -04:00
parent fb35c34171
commit aace0b1359
3 changed files with 26 additions and 26 deletions

2
init.c
View file

@ -25,7 +25,7 @@ void initialise(void)
game.abbrev[i] = 0;
if (!(locations[i].description.big == 0 || tkey[i] == 0)) {
int k = tkey[i];
if (MOD(travel[k].opcode, 1000) == 1)
if (T_LOW(travel[k]) == 1)
conditions[i] |= (1 << COND_FORCED);
}
game.atloc[i] = 0;