Canister will close valve when tank ejected

I wonder why nobody did it before.

Conflicts:
	code/game/machinery/atmoalter/canister.dm
This commit is contained in:
UristMcKerman
2014-05-20 13:00:31 +04:00
committed by ZomgPonies
parent 408379ab6a
commit 8c24a36298

View File

@@ -303,6 +303,9 @@ update_flag
if (href_list["remove_tank"])
if(holding)
if (valve_open)
valve_open = 0
release_log += "Valve was <b>closed</b> by [usr] ([usr.ckey]), stopping the transfer into the [holding]<br>"
holding.loc = loc
holding = null