Fix another ob1 error.
[open-adventure.git] / main.c
diff --git a/main.c b/main.c
index 1fb31ac7de5d4aa0284f0d2fe1601febcbf300c6..15e723086487d0cebcf23de6c84653ef274c45d1 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1027,22 +1027,15 @@ L2607:
 
        /* If a turn threshold has been met, apply penalties and tell
         * the player about it. */
-       for (int i = turn_threshold_count; i >= 0; --i)
+       for (int i = 0; i < turn_threshold_count; ++i)
          {
-           if (game.turns == turn_thresholds[i].threshold)
+           if (game.turns == turn_thresholds[i].threshold + 1)
              {
                game.trnluz += turn_thresholds[i].point_loss;
                speak(turn_thresholds[i].message);
              }
          }
-        /* if (game.turns == game.thresh) { */
-        /*     speak(turn_threshold_messages[game.trndex]); */
-        /*     game.trnluz = game.trnluz + TRNVAL[game.trndex] / 100000; */
-        /*     ++game.trndex; */
-        /*     game.thresh = -1; */
-        /*     if (game.trndex <= TRNVLS) */
-        /*         game.thresh = MOD(TRNVAL[game.trndex], 100000) + 1; */
-        /* } */
+
         if (command.verb == SAY && WD2 > 0)
             command.verb = 0;
         if (command.verb == SAY) {