mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +01:00
Firespots will GC properly now, firefighting won't lag the server.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user