Magic-number elimination.
This commit is contained in:
parent
f37a413524
commit
abf820bb5c
4 changed files with 7 additions and 8 deletions
2
score.c
2
score.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue