Fix off-by-one error.

This commit is contained in:
Jason S. Ninneman 2017-06-20 15:43:08 -07:00 committed by Eric S. Raymond
parent d029b08ad1
commit acc07e1287

2
main.c
View file

@ -1029,7 +1029,7 @@ L2607:
* the player about it. */ * the player about it. */
for (int i = turn_threshold_count; i >= 0; --i) for (int i = turn_threshold_count; i >= 0; --i)
{ {
if (game.turns == turn_thresholds[i].threshold) if (game.turns == turn_thresholds[i].threshold + 1)
{ {
game.trnluz += turn_thresholds[i].point_loss; game.trnluz += turn_thresholds[i].point_loss;
speak(turn_thresholds[i].message); speak(turn_thresholds[i].message);