X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=actions.c;h=e7574be4f2ce3c0e32af03376c98a04306cc25af;hb=b2a686b07def29a898fee83ab1e3a4a4f2ebd3eb;hp=4c2716e68114b241de9848d5e2e4bd48cf4ee3d1;hpb=ad24add3c0ccbb807b4d4a86fe7e3ae68492c62c;p=open-adventure.git diff --git a/actions.c b/actions.c index 4c2716e..e7574be 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;