X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=init.c;h=fc8d5fdce8db6cfeb6c814d3b4c5552cb72f5eeb;hp=d3823db5c33e63e03fb80b61fe53509e70f38065;hb=8560122f01f82bd508b93a0d27105bf415203803;hpb=7dc88392493951baa8071c7318e6c0b086c531e9 diff --git a/init.c b/init.c index d3823db..fc8d5fd 100644 --- a/init.c +++ b/init.c @@ -23,9 +23,9 @@ void initialise(void) for (int i = 1; i <= NLOCATIONS; i++) { game.abbrev[i] = 0; - if (!(locations[i].description.big == 0 || TKEY[i] == 0)) { - int k = TKEY[i]; - if (MOD(labs(TRAVEL[k]), 1000) == 1) + if (!(locations[i].description.big == 0 || tkey[i] == 0)) { + int k = tkey[i]; + if (MOD(labs(travel[k].opcode), 1000) == 1) conditions[i] |= (1 << COND_FORCED); } game.atloc[i] = 0;