Turn an odd test into a macro disjunction.
Was game.objects[i].prop > STATE_NOTFOUND. This finishes off all the statec comparisons we want to macroize.
This commit is contained in:
parent
191d3cb043
commit
9e9731d59b
1 changed files with 1 additions and 1 deletions
2
score.c
2
score.c
|
@ -48,7 +48,7 @@ int score(enum termination mode)
|
||||||
k = 14;
|
k = 14;
|
||||||
if (i > CHEST)
|
if (i > CHEST)
|
||||||
k = 16;
|
k = 16;
|
||||||
if (game.objects[i].prop > STATE_NOTFOUND)
|
if (!PROP_IS_STASHED(i) && !PROP_IS_NOTFOUND(i))
|
||||||
score += 2;
|
score += 2;
|
||||||
if (game.objects[i].place == LOC_BUILDING && PROP_IS_FOUND(i))
|
if (game.objects[i].place == LOC_BUILDING && PROP_IS_FOUND(i))
|
||||||
score += k - 2;
|
score += k - 2;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue