Magic-number elimination.
This commit is contained in:
parent
fd57b3b5bd
commit
7be7ac9406
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue