Magic-number elimination.

This commit is contained in:
Eric S. Raymond 2017-07-04 14:40:10 -04:00
parent f37a413524
commit abf820bb5c
4 changed files with 7 additions and 8 deletions

View file

@ -47,7 +47,7 @@ long score(enum termination mode)
k = 16;
if (game.prop[i] > STATE_NOTFOUND)
score += 2;
if (game.place[i] == LOC_BUILDING && game.prop[i] == STATE_GROUND)
if (game.place[i] == LOC_BUILDING && game.prop[i] == STATE_FOUND)
score += k - 2;
mxscor += k;
}