diff --git a/code/__DEFINES/subsystems.dm b/code/__DEFINES/subsystems.dm index 824925c0a45..7a19c1ba9d2 100644 --- a/code/__DEFINES/subsystems.dm +++ b/code/__DEFINES/subsystems.dm @@ -207,3 +207,12 @@ }\ A.flags_1 &= ~OVERLAY_QUEUED_1;\ } + +// Air subsystem subtasks +#define SSAIR_PIPENETS 1 +#define SSAIR_ATMOSMACHINERY 2 +#define SSAIR_ACTIVETURFS 3 +#define SSAIR_EXCITEDGROUPS 4 +#define SSAIR_HIGHPRESSURE 5 +#define SSAIR_HOTSPOTS 6 +#define SSAIR_SUPERCONDUCTIVITY 7 diff --git a/code/controllers/subsystem/air.dm b/code/controllers/subsystem/air.dm index 095369020e0..c9cb4a62b6c 100644 --- a/code/controllers/subsystem/air.dm +++ b/code/controllers/subsystem/air.dm @@ -1,11 +1,3 @@ -#define SSAIR_PIPENETS 1 -#define SSAIR_ATMOSMACHINERY 2 -#define SSAIR_ACTIVETURFS 3 -#define SSAIR_EXCITEDGROUPS 4 -#define SSAIR_HIGHPRESSURE 5 -#define SSAIR_HOTSPOTS 6 -#define SSAIR_SUPERCONDUCTIVITY 7 - SUBSYSTEM_DEF(air) name = "Atmospherics" init_order = INIT_ORDER_AIR @@ -405,11 +397,3 @@ SUBSYSTEM_DEF(air) return gas_string var/datum/atmosphere/mix = atmos_gen[gas_string] return mix.gas_string - -#undef SSAIR_PIPENETS -#undef SSAIR_ATMOSMACHINERY -#undef SSAIR_ACTIVETURFS -#undef SSAIR_EXCITEDGROUPS -#undef SSAIR_HIGHPRESSURE -#undef SSAIR_HOTSPOTS -#undef SSAIR_SUPERCONDUCTIVITY diff --git a/code/modules/atmospherics/machinery/atmosmachinery.dm b/code/modules/atmospherics/machinery/atmosmachinery.dm index 764a119f306..1dd9b52cf68 100644 --- a/code/modules/atmospherics/machinery/atmosmachinery.dm +++ b/code/modules/atmospherics/machinery/atmosmachinery.dm @@ -63,6 +63,8 @@ nullifyNode(i) SSair.atmos_machinery -= src + if(SSair.currentpart == SSAIR_ATMOSMACHINERY) + SSair.currentrun -= src dropContents() if(pipe_vision_img) diff --git a/code/modules/atmospherics/machinery/components/components_base.dm b/code/modules/atmospherics/machinery/components/components_base.dm index 58549f4ceed..eee2f383561 100644 --- a/code/modules/atmospherics/machinery/components/components_base.dm +++ b/code/modules/atmospherics/machinery/components/components_base.dm @@ -151,6 +151,7 @@ if(!parent) WARNING("Component is missing a pipenet! Rebuilding...") build_network() + parent = parents[i] parent.update = 1 /obj/machinery/atmospherics/components/returnPipenets() diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index 69e366d6223..409fcc3a3d4 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -410,6 +410,8 @@ GLOBAL_LIST_INIT(department_radio_keys, list( . = ..() /mob/living/whisper(message, bubble_type, list/spans = list(), sanitize = TRUE, datum/language/language = null, ignore_spam = FALSE, forced = null) + if(!message) + return say("#[message]", bubble_type, spans, sanitize, language, ignore_spam, forced) /mob/living/get_language_holder(get_minds = TRUE)