From: Eric S. Raymond Date: Wed, 5 Jul 2017 03:46:16 +0000 (-0400) Subject: Magic-number elimination. X-Git-Tag: takebird~24 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=5ae09b9c34dda539a0b197248e22c733e00dcffd;hp=c48c330883b30423517015e6e697d2c25023b53a;p=open-adventure.git Magic-number elimination. --- diff --git a/actions.c b/actions.c index abe9e5b..48e987f 100644 --- a/actions.c +++ b/actions.c @@ -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); }