Structurization of hints.

This commit is contained in:
Eric S. Raymond 2023-04-07 10:52:16 -04:00
parent eebc87f889
commit 8d4d64fafb
3 changed files with 20 additions and 18 deletions

View file

@ -96,7 +96,7 @@ int score(enum termination mode)
/* Deduct for hints/turns/saves. Hints < 4 are special; see database desc. */
for (int i = 0; i < NHINTS; i++) {
if (game.hinted[i])
if (game.hints[i].used)
score = score - hints[i].penalty;
}
if (game.novice)