Use new include_borders=no key for a simpler fix to bug #22097

This commit is contained in:
Charles Dang 2015-01-15 03:39:55 +11:00
parent 63891c77a1
commit 4e8bdfba40

View file

@ -230,10 +230,6 @@
[/else]
[/if]
[store_map_dimensions]
variable=respawn_map
[/store_map_dimensions]
[while]
[variable]
name=respawn_point.length
@ -242,6 +238,8 @@
[do]
[store_locations]
variable=respawn_point
# Exclude map edges, otherwise the unit gets sent to the recall list
include_borders=no
[and]
[filter]
id=$respawn_hub
@ -258,11 +256,6 @@
terrain=Wo,*^Xm,X*,Q*
[/not]
[/and]
# Exclude map edges, otherwise the unit gets sent to the recall list
[and]
x=1-$respawn_map.width
y=1-$respawn_map.height
[/and]
[/store_locations]
{VARIABLE_OP current_radius add 1}
[/do]