X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=score.c;fp=score.c;h=f3fc80749922c2ff9febce40bd3ec8ef33a03870;hp=3091413e36fde70bd0194f6b8b6e20fecf4d1c0a;hb=f6373dd32e4ed75b18c9c6fb7dfa103d4ef68891;hpb=e798355e8080388e0e82aa18c0749b350c51835c diff --git a/score.c b/score.c index 3091413..f3fc807 100644 --- a/score.c +++ b/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);