Remove arithmetic on a location number.

This commit is contained in:
Eric S. Raymond 2017-07-05 20:51:45 -04:00
parent b2a686b07d
commit da1f251524

View file

@ -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 {