mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 23:48:14 +00:00
Clear the destroyed base from the bases array...
...without erasing the spawn tracking of all bases.
This commit is contained in:
parent
5ab2bd041c
commit
aabd799000
@ -594,14 +594,25 @@ Soooo... It is you who sent your subordinates to attack us. Now when we’ve des
|
||||
{PLACE_IMAGE scenery/village-human-burned4.png $x1 $y1}
|
||||
|
||||
# Remove the current location from the array
|
||||
[store_locations]
|
||||
find_in=drake_bases
|
||||
[not]
|
||||
x,y=$x1,$y1
|
||||
[/not]
|
||||
{FOREACH drake_bases i}
|
||||
[if]
|
||||
[variable]
|
||||
name=drake_bases[$i].x
|
||||
numerical_equals=$x1
|
||||
[/variable]
|
||||
|
||||
variable=drake_bases
|
||||
[/store_locations]
|
||||
[variable]
|
||||
name=drake_bases[$i].y
|
||||
numerical_equals=$y1
|
||||
[/variable]
|
||||
|
||||
[then]
|
||||
{CLEAR_VARIABLE drake_bases[$i]}
|
||||
|
||||
{VARIABLE i 999}
|
||||
[/then]
|
||||
[/if]
|
||||
{NEXT i}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
|
Loading…
x
Reference in New Issue
Block a user