Magic-number elimination.

This commit is contained in:
Eric S. Raymond 2017-07-02 13:22:50 -04:00
parent 73278b1a3c
commit 346bcf9458
4 changed files with 6 additions and 5 deletions

2
main.c
View file

@ -185,7 +185,7 @@ static void checkhints(void)
game.hintlc[hint] = 0;
return;
case 4: /* dark */
if (game.prop[EMERALD] != -1 && game.prop[PYRAMID] == -1)
if (game.prop[EMERALD] != NOT_YET_FOUND && game.prop[PYRAMID] == NOT_YET_FOUND)
break;
game.hintlc[hint] = 0;
return;