mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 01:51:46 +00:00
Made SCATTER_UNITS handle running out of valid spots better.
This commit is contained in:
parent
f7ce683f29
commit
daec179c59
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user