Confine use of STATE_NOTFOUND to macros.
This commit is contained in:
parent
9e9731d59b
commit
1af01ff91f
3 changed files with 5 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue