X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=actions.c;h=af36ae6a68069212218b5c11076a9d3f74177b31;hb=da1f2515243586a154f4e60064d4328cd435f538;hp=4c2716e68114b241de9848d5e2e4bd48cf4ee3d1;hpb=ad24add3c0ccbb807b4d4a86fe7e3ae68492c62c;p=open-adventure.git diff --git a/actions.c b/actions.c index 4c2716e..af36ae6 100644 --- a/actions.c +++ b/actions.c @@ -813,12 +813,12 @@ static int fly(token_t verb, token_t obj) } game.oldlc2 = game.oldloc; game.oldloc = game.loc; - /* FIXME: Arithmetic on location values */ - game.newloc = game.place[RUG] + game.fixed[RUG] - game.loc; if (game.prop[SAPPH] == STATE_NOTFOUND) { + game.newloc = game.place[SAPPH]; rspeak(RUG_GOES); } else { + game.newloc = LOC_CLIFF; rspeak(RUG_RETURNS); } return GO_TERMINATE; @@ -1073,8 +1073,7 @@ static int read(struct command_t command) static int reservoir(void) /* Z'ZZZ (word gets recomputed at startup; different each game). */ { - /* FIXME: Arithmetic on state numbers */ - if (!AT(RESER) && game.loc != game.fixed[RESER] - 1) { + if (!AT(RESER) && game.loc != LOC_RESBOTTOM) { rspeak(NOTHING_HAPPENS); return GO_CLEAROBJ; } else {