[MIRROR] bunch of misc fixes (#10084)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-02-07 07:23:35 -07:00
committed by GitHub
parent 08485074a9
commit 07017b04a7
17 changed files with 29 additions and 48 deletions

View File

@@ -105,7 +105,7 @@ SUBSYSTEM_DEF(machines)
while(current_run.len)
var/datum/pipe_network/PN = current_run[current_run.len]
current_run.len--
if(!PN || QDELETED(PN)) //CHOMPEdit
if(!PN || QDELETED(PN))
networks.Remove(PN)
DISABLE_BITFIELD(PN?.datum_flags, DF_ISPROCESSING)
else
@@ -122,7 +122,7 @@ SUBSYSTEM_DEF(machines)
while(current_run.len)
var/obj/machinery/M = current_run[current_run.len]
current_run.len--
if(!istype(M) || QDELETED(M) || (M.process(wait) == PROCESS_KILL)) //CHOMPEdit
if(!istype(M) || QDELETED(M) || (M.process(wait) == PROCESS_KILL))
processing_machines.Remove(M)
DISABLE_BITFIELD(M?.datum_flags, DF_ISPROCESSING)
if(MC_TICK_CHECK)

View File

@@ -139,8 +139,8 @@ SUBSYSTEM_DEF(plants)
return
/datum/controller/subsystem/plants/proc/add_plant(var/obj/effect/plant/plant)
if(!QDELETED(plant)) //CHOMPEdit GC
processing |= plant //CHOMPEdit GC
if(!QDELETED(plant))
processing |= plant
/datum/controller/subsystem/plants/proc/remove_plant(var/obj/effect/plant/plant)
processing -= plant