Abolish HNTMAX and HNTSIZ in favor of HINT_COUNT.
This change necessitated include guards on newdb.h.
This commit is contained in:
parent
deb61e3dcd
commit
c8f6ff3701
7 changed files with 12 additions and 14 deletions
2
score.c
2
score.c
|
@ -87,7 +87,7 @@ long score(enum termination mode)
|
|||
mxscor += 2;
|
||||
|
||||
/* Deduct for hints/turns/saves. Hints < 4 are special; see database desc. */
|
||||
for (long i = 1; i <= HNTMAX; i++) {
|
||||
for (long i = 1; i <= HINT_COUNT; i++) {
|
||||
if (game.hinted[i])
|
||||
score = score - hints[i-1].penalty;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue