From b56d1cf06ce499fbda014f1b14cfc5cddf46d6dd Mon Sep 17 00:00:00 2001 From: Tigercat2000 Date: Wed, 29 Apr 2015 07:16:54 -0700 Subject: [PATCH] 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. --- code/LINDA/LINDA_turf_tile.dm | 1 + code/game/machinery/doors/airlock.dm | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/LINDA/LINDA_turf_tile.dm b/code/LINDA/LINDA_turf_tile.dm index c91d16e05f8..1e73075f7aa 100644 --- a/code/LINDA/LINDA_turf_tile.dm +++ b/code/LINDA/LINDA_turf_tile.dm @@ -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 diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index 24758c657fc..64f9bc02add 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -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()