X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=score.c;h=e858681c40b535cbb82becdeb08c1e9d03741550;hp=00ee001dafd69ca200334637fbd5b0b50bddba38;hb=a8ac2f477a2564bcf5b40508aea2c192d237c88a;hpb=8bc08773fa4ac22f7fd3c89d8e8be92d2cab616a 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; }