LINDA patch- Airlock atmospass fix, Runtime fix

This commit fixes the bug encountered wherein airlocks were not checked
before gas was allowed to move onto their tile- but only if opened and
closed. The problem was that they did not issue the correct atmos updating
command when they closed, but they did when they opened, and when they are
created.

The runtime was seemingly random, but the small sanity check will prevent
it from happening again.
This commit is contained in:
Tigercat2000
2015-04-29 07:16:54 -07:00
parent 635cf3ad60
commit b56d1cf06c
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -319,6 +319,7 @@ atom/movable/proc/experience_pressure_difference(pressure_difference, direction)
var/datum/gas/sleeping_agent/S = new
A.trace_gases += S
for(var/turf/simulated/T in turf_list)
if(T == null || !istype(T)) return
A.oxygen += T.air.oxygen
A.carbon_dioxide+= T.air.carbon_dioxide
A.nitrogen += T.air.nitrogen
+2 -1
View File
@@ -926,7 +926,8 @@ About the new airlock wires panel:
if(visible && !glass)
SetOpacity(1)
operating = 0
air_update_turf()
air_update_turf(1)
update_freelok_sight()
if(locate(/mob/living) in get_turf(src))
open()