From 445c043ef48028042c4aa48238bb3a46bfbed985 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 7 Jan 2023 03:56:13 +0100 Subject: [PATCH] [MIRROR] Fixes turfs on centcom getting weird atmos adjacent turfs. [MDB IGNORE] (#18306) --- code/controllers/subsystem/air.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/controllers/subsystem/air.dm b/code/controllers/subsystem/air.dm index 729f82ec306..cf0f53868d8 100644 --- a/code/controllers/subsystem/air.dm +++ b/code/controllers/subsystem/air.dm @@ -534,7 +534,9 @@ SUBSYSTEM_DEF(air) active.remove_atom_colour(TEMPORARY_COLOUR_PRIORITY, COLOR_VIBRANT_LIME) #endif active_turfs.Cut() - var/time = 0 + // We compare this against turf.current cycle using <= to ensure O(n) + // It defaults to 0, so we start at -1 + var/time = -1 for(var/turf/T as anything in ALL_TURFS()) if (!T.init_air)