From a8eefff531346a189afb7a5ef819b2d066e798c7 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Thu, 30 Mar 2017 07:39:10 -0400 Subject: [PATCH] Active turf visualization (#25594) --- code/_compile_options.dm | 2 ++ code/controllers/subsystem/air.dm | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/code/_compile_options.dm b/code/_compile_options.dm index 7c2addb54dd..3da4503adcc 100644 --- a/code/_compile_options.dm +++ b/code/_compile_options.dm @@ -7,6 +7,8 @@ //#define GC_FAILURE_HARD_LOOKUP //makes paths that fail to GC call find_references before del'ing. //Also allows for recursive reference searching of datums. //Sets world.loop_checks to false and prevents find references from sleeping + +//#define VISUALIZE_ACTIVE_TURFS //Highlights atmos active turfs in green #endif #define PRELOAD_RSC 1 /*set to: diff --git a/code/controllers/subsystem/air.dm b/code/controllers/subsystem/air.dm index 6a004adef64..85d34d33184 100644 --- a/code/controllers/subsystem/air.dm +++ b/code/controllers/subsystem/air.dm @@ -244,6 +244,9 @@ var/datum/controller/subsystem/air/SSair active_turfs -= T if(currentpart == SSAIR_ACTIVETURFS) currentrun -= T + #ifdef VISUALIZE_ACTIVE_TURFS + T.remove_atom_colour(TEMPORARY_COLOUR_PRIORITY, "#00ff00") + #endif if(istype(T)) T.excited = 0 if(T.excited_group) @@ -251,6 +254,9 @@ var/datum/controller/subsystem/air/SSair /datum/controller/subsystem/air/proc/add_to_active(turf/open/T, blockchanges = 1) if(istype(T) && T.air) + #ifdef VISUALIZE_ACTIVE_TURFS + T.add_atom_colour("#00ff00", TEMPORARY_COLOUR_PRIORITY) + #endif T.excited = 1 active_turfs |= T if(currentpart == SSAIR_ACTIVETURFS)