projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Turn an odd test into a macro disjunction.
[open-adventure.git]
/
score.c
diff --git
a/score.c
b/score.c
index ed9cdeda34263281610372603e9da659ff906979..c0a0277b36afd4f5d1f2e0c2d26f6665eba39c52 100644
(file)
--- a/
score.c
+++ b/
score.c
@@
-48,7
+48,7
@@
int score(enum termination mode)
k = 14;
if (i > CHEST)
k = 16;
- if (
game.objects[i].prop > STATE_NOTFOUND
)
+ if (
!PROP_IS_STASHED(i) && !PROP_IS_NOTFOUND(i)
)
score += 2;
if (game.objects[i].place == LOC_BUILDING && PROP_IS_FOUND(i))
score += k - 2;