Fix off-by-one error.
This commit is contained in:
parent
d029b08ad1
commit
acc07e1287
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue