Magic-number elimination.
This commit is contained in:
parent
73278b1a3c
commit
346bcf9458
4 changed files with 6 additions and 5 deletions
2
main.c
2
main.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue