From 64b6f820a5bcdd4c4ee385af789104faf4252793 Mon Sep 17 00:00:00 2001 From: Aranclanos Date: Wed, 13 Aug 2014 08:36:23 -0300 Subject: [PATCH] Firespots will GC properly now, firefighting won't lag the server. --- code/LINDA/LINDA_fire.dm | 4 ++-- code/LINDA/LINDA_turf_tile.dm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/LINDA/LINDA_fire.dm b/code/LINDA/LINDA_fire.dm index 5089252dc59..37eb751e194 100644 --- a/code/LINDA/LINDA_fire.dm +++ b/code/LINDA/LINDA_fire.dm @@ -144,9 +144,9 @@ /obj/effect/hotspot/proc/Kill() air_master.hotspots -= src DestroyTurf() - garbage_collect() + qdel(src) -/obj/effect/hotspot/proc/garbage_collect() +/obj/effect/hotspot/Destroy() if(istype(loc, /turf/simulated)) var/turf/simulated/T = loc if(T.active_hotspot == src) diff --git a/code/LINDA/LINDA_turf_tile.dm b/code/LINDA/LINDA_turf_tile.dm index 5b63966de76..98e9574b0bb 100644 --- a/code/LINDA/LINDA_turf_tile.dm +++ b/code/LINDA/LINDA_turf_tile.dm @@ -66,7 +66,7 @@ turf/simulated/New() turf/simulated/Del() if(active_hotspot) - active_hotspot.garbage_collect() + qdel(active_hotspot) ..() turf/simulated/assume_air(datum/gas_mixture/giver)