From 50fc26edea8a8115182746df0928b2b90f0ae71a Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Sun, 20 Mar 2016 03:23:49 -0700 Subject: [PATCH] Fixes ssair trying to proc unsimulated turfs. An active/excited simulated turf would get deleted and converted to space, so this would change the turf in ssair's active_turfs list to a space turf, then it would runtime trying to call process_cell on it. before a : and some lack of caring and a type check handled this. this OOP way seems better. --- .../modules/atmospherics/environmental/LINDA_turf_tile.dm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/code/modules/atmospherics/environmental/LINDA_turf_tile.dm b/code/modules/atmospherics/environmental/LINDA_turf_tile.dm index 671e8eec9bc..7235c645f35 100644 --- a/code/modules/atmospherics/environmental/LINDA_turf_tile.dm +++ b/code/modules/atmospherics/environmental/LINDA_turf_tile.dm @@ -117,13 +117,11 @@ sharer.temperature += heat/sharer.heat_capacity +/turf/proc/process_cell(fire_count) + SSair.remove_from_active(src) - - - - -/turf/simulated/proc/process_cell(fire_count) +/turf/simulated/process_cell(fire_count) if(archived_cycle < fire_count) //archive self if not already done archive()