Firespots will GC properly now, firefighting won't lag the server.

This commit is contained in:
Aranclanos
2014-08-13 08:36:23 -03:00
parent 681990a835
commit 64b6f820a5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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)