Magic-number elimination.
[open-adventure.git] / score.c
diff --git a/score.c b/score.c
index 00ee001dafd69ca200334637fbd5b0b50bddba38..e858681c40b535cbb82becdeb08c1e9d03741550 100644 (file)
--- 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;
         }