mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 07:53:17 +00:00
Initialize a variable outside the loop where it is incremented.
This should allow the intended limitation of at most two spawns after $final_turns.
This commit is contained in:
parent
80638bdd0e
commit
efb6189879
@ -570,13 +570,13 @@ Note: You need to use the default map settings for the scenario to work right."
|
||||
# reduce gold and units for spawns
|
||||
# after the final spawn
|
||||
{VARIABLE spawn_id 0}
|
||||
{VARIABLE end_spawn 0}
|
||||
[while]
|
||||
[variable]
|
||||
name=spawn_id
|
||||
less_than=$main_group
|
||||
[/variable]
|
||||
[do]
|
||||
{VARIABLE end_spawn 0}
|
||||
[if]
|
||||
[variable]
|
||||
name=timed_spawn[$spawn_id].turn
|
||||
|
Loading…
x
Reference in New Issue
Block a user