projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Eliminate setting of OBJTXT sell for oyster - OBJTXT is now static.
[open-adventure.git]
/
score.c
diff --git
a/score.c
b/score.c
index 0916b9a82bf740010f011393f97375f22db10094..cd4b9e6d2ff779ce65ca37decc1667165adc9723 100644
(file)
--- a/
score.c
+++ b/
score.c
@@
-87,9
+87,9
@@
long score(enum termination mode)
mxscor += 2;
/* Deduct for hints/turns/saves. Hints < 4 are special; see database desc. */
mxscor += 2;
/* Deduct for hints/turns/saves. Hints < 4 are special; see database desc. */
- for (long i =
1; i <= HNTMAX
; i++) {
+ for (long i =
0; i < HINT_COUNT
; i++) {
if (game.hinted[i])
if (game.hinted[i])
- score = score - hints[i
-1
].penalty;
+ score = score - hints[i].penalty;
}
if (game.novice)
score -= 5;
}
if (game.novice)
score -= 5;