*/
void score(enum termination mode)
-/* mode is 'report' if scoring, 'quit' if quitting, 'end' if died or won */
+/* mode is 'scoregame' if scoring, 'quitgame' if quitting, 'endgame' if died
+ * or won */
{
long score = 0, mxscor = 0;
SETPRM(1,score,mxscor);
SETPRM(3,game.turns,game.turns);
RSPEAK(TOTAL_SCORE);
- for (long i=1; i<=CLSSES; i++) {
+ for (long i=1; i<=(long)CLSSES; i++) {
if(CVAL[i] >= score) {
newspeak(class_messages[i]);
i=CVAL[i]+1-score;