SotBE S11: ensure all variables are cleared after use

This commit is contained in:
mattsc 2014-01-27 19:15:30 -08:00
parent 7ef4230ddf
commit 142048d071

View File

@ -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 Lanbech. 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 Lanbech. 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