projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More switch reformatting.
[open-adventure.git]
/
score.c
diff --git
a/score.c
b/score.c
index 484a9e7097ddef22996bc15823e5c214893b70b2..6e0fc5380a1f11920d4d27cac3463c67670836b7 100644
(file)
--- a/
score.c
+++ b/
score.c
@@
-83,9
+83,9
@@
L20020: MXSCOR=MXSCOR+45;
for (I=1; I<=HNTMAX; I++) {
if(HINTED[I])SCORE=SCORE-HINTS[I][2];
} /* end loop */
for (I=1; I<=HNTMAX; I++) {
if(HINTED[I])SCORE=SCORE-HINTS[I][2];
} /* end loop */
- if(
NOVICE
)SCORE=SCORE-5;
- if(
CLSHNT
)SCORE=SCORE-10;
- SCORE=SCORE-
TRNLUZ-SAVED
;
+ if(
game.novice
)SCORE=SCORE-5;
+ if(
game.clshint
)SCORE=SCORE-10;
+ SCORE=SCORE-
game.trnluz-game.saved
;
/* Return to score command if that's where we came from. */
/* Return to score command if that's where we came from. */
@@
-93,25
+93,25
@@
L20020: MXSCOR=MXSCOR+45;
/* that should be good enough. Let's tell him all about it. */
/* that should be good enough. Let's tell him all about it. */
- if(SCORE+
TRNLUZ+1 >= MXSCOR && TRNLUZ
!= 0)RSPEAK(242);
- if(SCORE+
SAVED+1 >= MXSCOR && SAVED
!= 0)RSPEAK(143);
+ if(SCORE+
game.trnluz+1 >= MXSCOR && game.trnluz
!= 0)RSPEAK(242);
+ if(SCORE+
game.saved+1 >= MXSCOR && game.saved
!= 0)RSPEAK(143);
SETPRM(1,SCORE,MXSCOR);
SETPRM(1,SCORE,MXSCOR);
- SETPRM(3,
TURNS,TURNS
);
+ SETPRM(3,
game.turns,game.turns
);
RSPEAK(262);
for (I=1; I<=CLSSES; I++) {
if(CVAL[I] >= SCORE) goto L20210;
/*etc*/ ;
} /* end loop */
RSPEAK(262);
for (I=1; I<=CLSSES; I++) {
if(CVAL[I] >= SCORE) goto L20210;
/*etc*/ ;
} /* end loop */
-
SPK
=265;
+
game.spk
=265;
goto L25000;
L20210: SPEAK(CTEXT[I]);
goto L25000;
L20210: SPEAK(CTEXT[I]);
-
SPK
=264;
+
game.spk
=264;
if(I >= CLSSES) goto L25000;
I=CVAL[I]+1-SCORE;
SETPRM(1,I,I);
if(I >= CLSSES) goto L25000;
I=CVAL[I]+1-SCORE;
SETPRM(1,I,I);
-
SPK
=263;
-L25000: RSPEAK(
SPK
);
+
game.spk
=263;
+L25000: RSPEAK(
game.spk
);
exit(0);
}
exit(0);
}