Magic-number elimination.

This commit is contained in:
Eric S. Raymond 2017-07-05 03:17:24 -04:00
parent fd57b3b5bd
commit 7be7ac9406
2 changed files with 8 additions and 2 deletions

View file

@ -889,8 +889,7 @@ static int listen(void)
long packed_zzword = token_to_packed(game.zzword);
pspeak(i, hear, mi, true, packed_zzword);
rspeak(NO_MESSAGE);
/* FIXME: Magic number, sensitive to bird state logic */
if (i == BIRD && game.prop[i] == 5)
if (i == BIRD && mi == BIRD_ENDSTATE)
DESTROY(BIRD);
return GO_CLEAROBJ;
}