mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 15:46:49 +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]
|
[/if]
|
||||||
{NEXT i}
|
{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]
|
[/event]
|
||||||
|
|
||||||
# This picks a nearby side 4 unit and flags it as one which should move
|
# This picks a nearby side 4 unit and flags it as one which should move
|
||||||
@ -642,7 +642,7 @@
|
|||||||
#[/else]
|
#[/else]
|
||||||
[/if]
|
[/if]
|
||||||
|
|
||||||
{CLEAR_VARIABLE possible_boarders}
|
{CLEAR_VARIABLE possible_boarders,random}
|
||||||
[/event]
|
[/event]
|
||||||
|
|
||||||
# This makes units which have been designated to board a transport to move
|
# This makes units which have been designated to board a transport to move
|
||||||
@ -748,7 +748,7 @@
|
|||||||
[/unstore_unit]
|
[/unstore_unit]
|
||||||
{NEXT i}
|
{NEXT i}
|
||||||
|
|
||||||
{CLEAR_VARIABLE moving_to_transport,boarding_locs}
|
{CLEAR_VARIABLE moving_to_transport,boarding_locs,random}
|
||||||
[/event]
|
[/event]
|
||||||
|
|
||||||
[event]
|
[event]
|
||||||
@ -904,7 +904,7 @@
|
|||||||
[/case]
|
[/case]
|
||||||
[/switch]
|
[/switch]
|
||||||
|
|
||||||
{CLEAR_VARIABLE unit.variables.landing_party}
|
{CLEAR_VARIABLE unit.variables.landing_party,disembark_loc}
|
||||||
|
|
||||||
{VARIABLE unit.moves 0}
|
{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= _ "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]
|
[/message]
|
||||||
|
|
||||||
{CLEAR_VARIABLE transport_to_board}
|
{CLEAR_VARIABLE transport_to_board,landing_parties_landed,landing_parties_landed,ships_boarded}
|
||||||
|
|
||||||
[endlevel]
|
[endlevel]
|
||||||
result=victory
|
result=victory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user