Magic-number elimination.

This commit is contained in:
Eric S. Raymond 2017-07-04 23:46:16 -04:00
parent c48c330883
commit 5ae09b9c34

View file

@ -477,7 +477,7 @@ static int discard(token_t verb, token_t obj, bool just_do_it)
/* FIXME: Arithmetic on state numbers */
int k = 2 - game.prop[RUG];
game.prop[RUG] = k;
if (k == 2)
if (k == RUG_HOVER)
k = objects[SAPPH].plac;
move(RUG + NOBJECTS, k);
}