Confine use of STATE_NOTFOUND to macros.

This commit is contained in:
Eric S. Raymond 2023-04-08 22:53:06 -04:00
parent 9e9731d59b
commit 1af01ff91f
3 changed files with 5 additions and 4 deletions

View file

@ -218,7 +218,7 @@ bool is_valid(struct game_t valgame)
int temp_tally = 0;
for (int treasure = 1; treasure <= NOBJECTS; treasure++) {
if (objects[treasure].is_treasure) {
if (valgame.objects[treasure].prop == STATE_NOTFOUND) {
if (PROP_IS_NOTFOUND2(valgame, treasure)) {
++temp_tally;
}
}