Magic-number elimination.
This commit is contained in:
parent
c48c330883
commit
5ae09b9c34
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ static int discard(token_t verb, token_t obj, bool just_do_it)
|
||||||
/* FIXME: Arithmetic on state numbers */
|
/* FIXME: Arithmetic on state numbers */
|
||||||
int k = 2 - game.prop[RUG];
|
int k = 2 - game.prop[RUG];
|
||||||
game.prop[RUG] = k;
|
game.prop[RUG] = k;
|
||||||
if (k == 2)
|
if (k == RUG_HOVER)
|
||||||
k = objects[SAPPH].plac;
|
k = objects[SAPPH].plac;
|
||||||
move(RUG + NOBJECTS, k);
|
move(RUG + NOBJECTS, k);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue