From: Eric S. Raymond Date: Thu, 6 Jul 2017 00:51:45 +0000 (-0400) Subject: Remove arithmetic on a location number. X-Git-Tag: 2017-07-10~57 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=da1f2515243586a154f4e60064d4328cd435f538;p=open-adventure.git Remove arithmetic on a location number. --- diff --git a/actions.c b/actions.c index e7574be..af36ae6 100644 --- a/actions.c +++ b/actions.c @@ -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 {