GC cleanup (#8211)

This commit is contained in:
Cadyn
2024-04-11 07:48:37 +02:00
committed by GitHub
parent 43b856c621
commit 985f3401a9
7 changed files with 29 additions and 2 deletions
+7
View File
@@ -99,3 +99,10 @@ SUBSYSTEM_DEF(mobs)
/datum/controller/subsystem/mobs/critfail()
..()
log_recent()
//CHOMPEdit Begin
//Mobs need to immediately removed from the SS list on Destroy
/mob/Destroy()
. = ..()
SSmobs.currentrun -= src
//CHOMPEdit End
+2 -1
View File
@@ -141,7 +141,8 @@ SUBSYSTEM_DEF(plants)
return
/datum/controller/subsystem/plants/proc/add_plant(var/obj/effect/plant/plant)
processing |= plant
if(!QDELETED(plant)) //CHOMPEdit GC
processing |= plant //CHOMPEdit GC
/datum/controller/subsystem/plants/proc/remove_plant(var/obj/effect/plant/plant)
processing -= plant
+7
View File
@@ -146,3 +146,10 @@ SUBSYSTEM_DEF(radiation)
return
var/turf/epicentre = locate(round(world.maxx / 2), round(world.maxy / 2), source.z)
flat_radiate(epicentre, power, world.maxx, respect_maint)
//CHOMPEdit Begin
//Putting this here so it can be promptly nuked if I ever redo the radiation subsystem
/mob/living/Destroy()
. = ..()
SSradiation.listeners -= src
//CHOMPEdit End