Scoring code is fully translated to C.
This commit is contained in:
parent
db4b972fc7
commit
1b59175d8d
1 changed files with 10 additions and 12 deletions
22
score.c
22
score.c
|
@ -110,18 +110,16 @@ void score(long mode)
|
||||||
SETPRM(3,game.turns,game.turns);
|
SETPRM(3,game.turns,game.turns);
|
||||||
RSPEAK(262);
|
RSPEAK(262);
|
||||||
for (i=1; i<=CLSSES; i++) {
|
for (i=1; i<=CLSSES; i++) {
|
||||||
if(CVAL[i] >= score) goto L20210;
|
if(CVAL[i] >= score) {
|
||||||
} /* end loop */
|
SPEAK(CTEXT[i]);
|
||||||
SPK=265;
|
i=CVAL[i]+1-score;
|
||||||
goto L25000;
|
SETPRM(1,i,i);
|
||||||
|
RSPEAK(263);
|
||||||
L20210: SPEAK(CTEXT[i]);
|
exit(0);
|
||||||
SPK=264;
|
}
|
||||||
if(i >= CLSSES) goto L25000;
|
}
|
||||||
i=CVAL[i]+1-score;
|
RSPEAK(265);
|
||||||
SETPRM(1,i,i);
|
RSPEAK(264);
|
||||||
SPK=263;
|
|
||||||
L25000: RSPEAK(SPK);
|
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue