Magic-number elimination.

This commit is contained in:
Eric S. Raymond 2017-06-17 19:39:25 -04:00
parent a3485d2a41
commit 900822d38f
2 changed files with 6 additions and 6 deletions

View file

@ -65,11 +65,11 @@ void score(enum termination mode)
if(game.closed) {
if(game.bonus == 0)
score += 10;
if(game.bonus == 135)
if(game.bonus == SPLATTER_MESSAGE)
score += 25;
if(game.bonus == 134)
if(game.bonus == DEFEAT_MESSAGE)
score += 30;
if(game.bonus == 133)
if(game.bonus == VICTORY_MESSAGE)
score += 45;
}
mxscor += 45;