Skip to content

Commit

Permalink
HttT S12 Fix bug: Divide by zero
Browse files Browse the repository at this point in the history
An off-by-one on the turn calculations. Turns left should include current turn; else divides by zero on the last turn. To reproduce you MUST step through every turn! Simply jumping to the last turn or two will not tickle the bug.
  • Loading branch information
GregoryLundberg committed Aug 12, 2016
1 parent 9f7933d commit 8bdd07c
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -5,12 +5,14 @@
map_data="{campaigns/Heir_To_The_Throne/maps/12_Northern_Winter.map}"

{TURNS 50 40 40}
# when changing the turn limits, also change this event accordingly
[event]
name=prestart
[store_turns]
variable=turn_limit
[/store_turns]
[set_variable]
name=turn_limit
{QUANTITY value 50 40 40}
add=1
[/set_variable]
[/event]

Expand Down

0 comments on commit 8bdd07c

Please sign in to comment.