-/* NOW LOOK AT HOW HE FINISHED AND HOW FAR HE GOT. MAXDIE AND NUMDIE TELL US
- * HOW WELL HE SURVIVED. DFLAG WILL
- * TELL US IF HE EVER GOT SUITABLY DEEP INTO THE CAVE. CLOSNG STILL INDICATES
- * WHETHER HE REACHED THE ENDGAME. AND IF HE GOT AS FAR AS "CAVE CLOSED"
- * (INDICATED BY "CLOSED"), THEN BONUS IS ZERO FOR MUNDANE EXITS OR 133, 134,
- * 135 IF HE BLEW IT (SO TO SPEAK). */
-
- SCORE=SCORE+(MAXDIE-NUMDIE)*10;
- MXSCOR=MXSCOR+MAXDIE*10;
- if(MODE == 0)SCORE=SCORE+4;
- MXSCOR=MXSCOR+4;
- if(DFLAG != 0)SCORE=SCORE+25;
- MXSCOR=MXSCOR+25;
- if(CLOSNG)SCORE=SCORE+25;
- MXSCOR=MXSCOR+25;
- if(!CLOSED) goto L20020;
- if(BONUS == 0)SCORE=SCORE+10;
- if(BONUS == 135)SCORE=SCORE+25;
- if(BONUS == 134)SCORE=SCORE+30;
- if(BONUS == 133)SCORE=SCORE+45;
-L20020: MXSCOR=MXSCOR+45;
-
-/* DID HE COME TO WITT'S END AS HE SHOULD? */
-
- if(PLACE[MAGZIN] == 108)SCORE=SCORE+1;
- MXSCOR=MXSCOR+1;
-
-/* ROUND IT OFF. */
-
- SCORE=SCORE+2;
- MXSCOR=MXSCOR+2;
-
-/* 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];
+/* Now look at how he finished and how far he got. MAXDIE and
+ * game.numdie tell us how well he survived. game.dflag will tell us
+ * if he ever got suitably deep into the cave. game.closng still
+ * indicates whether he reached the endgame. And if he got as far as
+ * "cave closed" (indicated by "game.closed"), then bonus is zero for
+ * mundane exits or 133, 134, 135 if he blew it (so to speak). */
+
+ score=score+(MAXDIE-game.numdie)*10;
+ mxscor=mxscor+MAXDIE*10;
+ if(mode == 0)score=score+4;
+ mxscor=mxscor+4;
+ if(game.dflag != 0)score=score+25;
+ mxscor=mxscor+25;
+ if(game.closng)score=score+25;
+ mxscor=mxscor+25;
+ if(game.closed) {
+ if(game.bonus == 0)score=score+10;
+ if(game.bonus == 135)score=score+25;
+ if(game.bonus == 134)score=score+30;
+ if(game.bonus == 133)score=score+45;
+ }
+ mxscor=mxscor+45;
+
+/* Did he come to Witt's End as he should? */
+
+ if(game.place[MAGZIN] == 108)
+ score=score+1;
+ mxscor=mxscor+1;
+
+/* Round it off. */
+
+ score=score+2;
+ mxscor=mxscor+2;
+
+/* Deduct for hints/turns/saves. Hints < 4 are special; see database desc. */
+
+ for (i=1; i<=HNTMAX; i++) {
+ if(game.hinted[i])score=score-HINTS[i][2];