After splitting out the stop field, nothing ever negates a travel opcode...

...so all those labs() calls can go away.
This commit is contained in:
Eric S. Raymond 2017-06-27 22:15:22 -04:00
parent 8560122f01
commit fb35c34171
2 changed files with 7 additions and 7 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(labs(travel[k].opcode), 1000) == 1)
if (MOD(travel[k].opcode, 1000) == 1)
conditions[i] |= (1 << COND_FORCED);
}
game.atloc[i] = 0;