projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d029b08
)
Fix off-by-one error.
author
Jason S. Ninneman
<jsn@mbar.us>
Tue, 20 Jun 2017 22:43:08 +0000
(15:43 -0700)
committer
Eric S. Raymond
<esr@thyrsus.com>
Tue, 20 Jun 2017 23:26:55 +0000
(19:26 -0400)
main.c
patch
|
blob
|
history
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)
{
- 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);