mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] bunch of misc fixes (#10084)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
08485074a9
commit
07017b04a7
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user