X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=main.c;h=9e08f9f646300bf47611e71840fa868a8b7c4e17;hb=76e3e27f66f9406ce8d7944d378bbc098b5a69d4;hp=98be245ebbdf1e6ea01e9be4b6bad33f55a7c86e;hpb=e57d9d514cc6cdeb23ddc995a4b9eb745f43817b;p=open-adventure.git diff --git a/main.c b/main.c index 98be245..9e08f9f 100644 --- a/main.c +++ b/main.c @@ -379,7 +379,7 @@ static bool dwarfmove(void) kk = tkey[game.dloc[i]]; if (kk != 0) do { - game.newloc = T_DESTINATION(travel[kk]); + game.newloc = travel[kk].dest; /* Have we avoided a dwarf encounter? */ bool avoided = (SPECIAL(game.newloc) || !INDEEP(game.newloc) || @@ -389,7 +389,7 @@ static bool dwarfmove(void) game.newloc == game.dloc[i] || FORCED(game.newloc) || (i == PIRATE && CNDBIT(game.newloc, COND_NOARRR)) || - T_NODWARVES(travel[kk])); + travel[kk].nodwarves); if (!avoided) { tk[j++] = game.newloc; } @@ -531,10 +531,10 @@ static bool playermove( int motion) if (spk == 0) { int te_tmp = 0; for (;;) { - scratchloc = T_DESTINATION(travel[travel_entry]); + scratchloc = travel[travel_entry].dest; if (scratchloc != motion) { if (!SPECIAL(scratchloc)) { - if (FORCED(scratchloc) && T_DESTINATION(travel[tkey[scratchloc]]) == motion) + if (FORCED(scratchloc) && travel[tkey[scratchloc]].dest == motion) te_tmp = travel_entry; } if (!travel[travel_entry].stop) { @@ -611,7 +611,7 @@ static bool playermove( int motion) do { for (;;) { /* L12 loop */ for (;;) { - long cond = T_CONDITION(travel[travel_entry]); + long cond = travel[travel_entry].cond; long arg = MOD(cond, 100); if (!SPECIAL(cond)) { /* YAML N and [pct N] conditionals */ @@ -640,7 +640,7 @@ static bool playermove( int motion) } /* Found an eligible rule, now execute it */ - game.newloc = T_DESTINATION(travel[travel_entry]); + game.newloc = travel[travel_entry].dest; if (!SPECIAL(game.newloc)) return true; @@ -1137,7 +1137,7 @@ Lookup: command.verb = kmod; break; case 3: - rspeak(specials[kmod].message); + speak(specials[kmod].message); goto L2012; default: BUG(VOCABULARY_TYPE_N_OVER_1000_NOT_BETWEEN_0_AND_3); // LCOV_EXCL_LINE