mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 03:01:43 +00:00
SotBE S11: ensure all variables are cleared after use
This commit is contained in:
parent
7ef4230ddf
commit
142048d071
@ -531,7 +531,7 @@
|
||||
[/if]
|
||||
{NEXT i}
|
||||
|
||||
{CLEAR_VARIABLE moving_transports,landing_sites,x,goto_x,goto_y}
|
||||
{CLEAR_VARIABLE moving_transports,landing_sites,x,goto_x,goto_y,random}
|
||||
[/event]
|
||||
|
||||
# This picks a nearby side 4 unit and flags it as one which should move
|
||||
@ -642,7 +642,7 @@
|
||||
#[/else]
|
||||
[/if]
|
||||
|
||||
{CLEAR_VARIABLE possible_boarders}
|
||||
{CLEAR_VARIABLE possible_boarders,random}
|
||||
[/event]
|
||||
|
||||
# This makes units which have been designated to board a transport to move
|
||||
@ -748,7 +748,7 @@
|
||||
[/unstore_unit]
|
||||
{NEXT i}
|
||||
|
||||
{CLEAR_VARIABLE moving_to_transport,boarding_locs}
|
||||
{CLEAR_VARIABLE moving_to_transport,boarding_locs,random}
|
||||
[/event]
|
||||
|
||||
[event]
|
||||
@ -904,7 +904,7 @@
|
||||
[/case]
|
||||
[/switch]
|
||||
|
||||
{CLEAR_VARIABLE unit.variables.landing_party}
|
||||
{CLEAR_VARIABLE unit.variables.landing_party,disembark_loc}
|
||||
|
||||
{VARIABLE unit.moves 0}
|
||||
|
||||
@ -1233,7 +1233,7 @@
|
||||
message= _ "It is now time to show them who we are and to lead the Great Horde in pursuit. We will not rest until we destroy Earl Lanbec’h. Smite, stab, slay!"
|
||||
[/message]
|
||||
|
||||
{CLEAR_VARIABLE transport_to_board}
|
||||
{CLEAR_VARIABLE transport_to_board,landing_parties_landed,landing_parties_landed,ships_boarded}
|
||||
|
||||
[endlevel]
|
||||
result=victory
|
||||
|
Loading…
x
Reference in New Issue
Block a user