projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix strange inside-out organization of the input routines.
[open-adventure.git]
/
score.c
diff --git
a/score.c
b/score.c
index e0a5be1e822eb8638b61c43b4c713492166cb0fc..103982e464337e1c41e1271a3013cea5b8b1d1c2 100644
(file)
--- a/
score.c
+++ b/
score.c
@@
-29,7
+29,7
@@
void score(long MODE) {
* Points can also be deducted for using hints or too many turns, or for
* saving intermediate positions. */
* Points can also be deducted for using hints or too many turns, or for
* saving intermediate positions. */
-
L20000:
SCORE=0;
+
SCORE=0;
MXSCOR=0;
/* First tally up the treasures. must be in building and not broken.
MXSCOR=0;
/* First tally up the treasures. must be in building and not broken.
@@
-80,8
+80,8
@@
L20020: MXSCOR=MXSCOR+45;
/* Deduct for hints/turns/saves. Hints < 4 are special; see database desc. */
/* Deduct for hints/turns/saves. Hints < 4 are special; see database desc. */
-
/* 20030 */
for (I=1; I<=HNTMAX; I++) {
-
L20030:
if(HINTED[I])SCORE=SCORE-HINTS[I][2];
+ 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;
} /* end loop */
if(NOVICE)SCORE=SCORE-5;
if(CLSHNT)SCORE=SCORE-10;
@@
-98,9
+98,9
@@
L20030: if(HINTED[I])SCORE=SCORE-HINTS[I][2];
SETPRM(1,SCORE,MXSCOR);
SETPRM(3,TURNS,TURNS);
RSPEAK(262);
SETPRM(1,SCORE,MXSCOR);
SETPRM(3,TURNS,TURNS);
RSPEAK(262);
-
/* 20200 */
for (I=1; I<=CLSSES; I++) {
+ for (I=1; I<=CLSSES; I++) {
if(CVAL[I] >= SCORE) goto L20210;
if(CVAL[I] >= SCORE) goto L20210;
-
L20200:
/*etc*/ ;
+
/*etc*/ ;
} /* end loop */
SPK=265;
goto L25000;
} /* end loop */
SPK=265;
goto L25000;