projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into actions-arithmetic
[open-adventure.git]
/
score.c
diff --git
a/score.c
b/score.c
index 734ea196ebad7fae0fc8a9af59dc890895ae07f1..594b637578d1270822c9b183218efaeba26ab2e3 100644
(file)
--- a/
score.c
+++ b/
score.c
@@
-8,7
+8,8
@@
*/
void score(enum termination mode)
*/
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;
{
long score = 0, mxscor = 0;
@@
-109,7
+110,7
@@
void score(enum termination mode)
SETPRM(1,score,mxscor);
SETPRM(3,game.turns,game.turns);
RSPEAK(TOTAL_SCORE);
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;
if(CVAL[i] >= score) {
newspeak(class_messages[i]);
i=CVAL[i]+1-score;