projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix off-by-one error.
[open-adventure.git]
/
main.c
diff --git
a/main.c
b/main.c
index 1fb31ac7de5d4aa0284f0d2fe1601febcbf300c6..1b326af0d897308f2e0745d0309a19b0e529f606 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-1029,7
+1029,7
@@
L2607:
* the player about it. */
for (int i = turn_threshold_count; i >= 0; --i)
{
* the player about it. */
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;
speak(turn_thresholds[i].message);
{
game.trnluz += turn_thresholds[i].point_loss;
speak(turn_thresholds[i].message);