X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=score.c;h=e858681c40b535cbb82becdeb08c1e9d03741550;hp=00ee001dafd69ca200334637fbd5b0b50bddba38;hb=e712f4c0e05bfa842e342f60f7ea3e33da9199fd;hpb=369c67840eef1746c043e662d179eabe47817f75 diff --git a/score.c b/score.c index 00ee001..e858681 100644 --- a/score.c +++ b/score.c @@ -45,9 +45,9 @@ long score(enum termination mode) k = 14; if (i > CHEST) k = 16; - if (game.prop[i] >= 0) + if (game.prop[i] > STATE_NOTFOUND) score += 2; - if (game.place[i] == LOC_BUILDING && game.prop[i] == 0) + if (game.place[i] == LOC_BUILDING && game.prop[i] == STATE_GROUND) score += k - 2; mxscor += k; }