Made SCATTER_UNITS handle running out of valid spots better.

This commit is contained in:
Lari Nieminen 2008-10-31 10:40:54 +00:00
parent f7ce683f29
commit daec179c59

View file

@ -705,6 +705,17 @@
variable=possible_unit_locations
[/store_locations]
[if]
[variable]
name=possible_unit_locations.length
less_than=1
[/variable]
[then]
{VARIABLE units_to_place 0}
[/then]
[/if]
{VARIABLE_OP unit_type_table_i add 1}
[if]