mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 06:07:22 +01:00
GC cleanup (#8211)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user