Reduce calculations by subtracting 1...

...before calling the REGULAR_RANDOM_SPAWNS macro.
This commit is contained in:
J. Tyne 2013-02-02 02:48:10 +00:00
parent 08730dd872
commit 5315735d81

View file

@ -441,13 +441,13 @@ Note: You need to use the default map settings for the scenario to work right."
[if]
[variable]
name=main_group
less_then={SPAWN_NUMBER} # Really: less or equal to SPAWN_NUMBER-1.
less_then={SPAWN_NUMBER}
[/variable]
[then]
{VARIABLE spawn_limit $main_group}
[/then]
[else]
{VARIABLE spawn_limit "$({SPAWN_NUMBER}-1)"}
{VARIABLE spawn_limit {SPAWN_NUMBER}}
[/else]
[/if]
{VARIABLE spawn_id 0}
@ -532,7 +532,7 @@ Note: You need to use the default map settings for the scenario to work right."
[/while]
{CLEAR_VARIABLE spawn_limit}
{VARIABLE final_turns "$timed_spawn[$({SPAWN_NUMBER}-1)].turn"}
{VARIABLE final_turns "$timed_spawn[{SPAWN_NUMBER}].turn"}
{VARIABLE_OP final_turns add 40}
{VARIABLE_OP final_turns divide 2}
{VARIABLE fixed_groups_left $fixed_group}
@ -1322,10 +1322,10 @@ The weather will also change randomly, affecting the layout of the map.
less_than=2
[/variable]
[then]
{REGULAR_RANDOM_SPAWNS 2 5 12 50 5 4 21}
{REGULAR_RANDOM_SPAWNS 2 5 11 50 5 4 21}
[/then]
[else]
{REGULAR_RANDOM_SPAWNS 2 4 12 90 4 5 23}
{REGULAR_RANDOM_SPAWNS 2 4 11 90 4 5 23}
[/else]
[/if]
{CLEAR_VARIABLE leader}