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]
{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 Lanbech. 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