Section 10 (class thresholds) is now parsed entirely from YAML.
This commit is contained in:
parent
e798355e80
commit
f6373dd32e
4 changed files with 45 additions and 37 deletions
6
score.c
6
score.c
|
@ -120,9 +120,9 @@ void terminate(enum termination mode)
|
|||
SETPRM(3, game.turns, game.turns);
|
||||
RSPEAK(TOTAL_SCORE);
|
||||
for (long i = 1; i <= (long)CLSSES; i++) {
|
||||
if (CVAL[i] >= points) {
|
||||
speak(class_messages[i]);
|
||||
i = CVAL[i] + 1 - points;
|
||||
if (classes[i].threshold >= points) {
|
||||
speak(classes[i].message);
|
||||
i = classes[i].threshold + 1 - points;
|
||||
SETPRM(1, i, i);
|
||||
RSPEAK(NEXT_HIGHER);
|
||||
exit(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue