Abolish MAXDIE in favor of maximum_deaths.
This commit is contained in:
parent
803d2b6ef9
commit
06e8d5a83e
4 changed files with 5 additions and 14 deletions
6
score.c
6
score.c
|
@ -50,14 +50,14 @@ long score(enum termination mode)
|
|||
}
|
||||
}
|
||||
|
||||
/* Now look at how he finished and how far he got. MAXDIE and
|
||||
/* Now look at how he finished and how far he got. maximum_deaths 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 += (MAXDIE - game.numdie) * 10;
|
||||
mxscor += MAXDIE * 10;
|
||||
score += (maximum_deaths - game.numdie) * 10;
|
||||
mxscor += maximum_deaths * 10;
|
||||
if (mode == endgame)
|
||||
score += 4;
|
||||
mxscor += 4;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue