X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;ds=sidebyside;f=score.c;h=c0a0277b36afd4f5d1f2e0c2d26f6665eba39c52;hb=869c53d1b1ae2d1da6cbb37070e76054e65cd559;hp=d3eeb0aa7848d9d448a5460eea09c05acb6dbc41;hpb=eebc87f889b0fa1404684aa6e72dda5a5e53d96b;p=open-adventure.git diff --git a/score.c b/score.c index d3eeb0a..c0a0277 100644 --- a/score.c +++ b/score.c @@ -48,9 +48,9 @@ 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 && game.objects[i].prop == STATE_FOUND) + if (game.objects[i].place == LOC_BUILDING && PROP_IS_FOUND(i)) score += k - 2; mxscor += k; } @@ -96,7 +96,7 @@ int score(enum termination mode) /* Deduct for hints/turns/saves. Hints < 4 are special; see database desc. */ for (int i = 0; i < NHINTS; i++) { - if (game.hinted[i]) + if (game.hints[i].used) score = score - hints[i].penalty; } if (game.novice)