Abolish HNTMAX and HNTSIZ in favor of HINT_COUNT.

This change necessitated include guards on newdb.h.
This commit is contained in:
Jason S. Ninneman 2017-06-21 10:01:16 -07:00
parent deb61e3dcd
commit c8f6ff3701
7 changed files with 12 additions and 14 deletions

View file

@ -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;
}