From 16896254cf735bc3f78a271390dcf34f1120e2ba Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Mon, 2 Apr 2018 09:32:29 -0400 Subject: [PATCH 1/2] Merge pull request #36888 from Robustin/initatmos Removes unecessary compares in turf atmos init --- code/game/turfs/open.dm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/code/game/turfs/open.dm b/code/game/turfs/open.dm index 143ae840f5..02df5ed3fb 100644 --- a/code/game/turfs/open.dm +++ b/code/game/turfs/open.dm @@ -137,14 +137,10 @@ if (!atmos_adjacent_turfs || !atmos_adjacent_turfs[enemy_tile]) continue - - var/is_active = air.compare(enemy_air) - - if(is_active) + if(!excited && air.compare(enemy_air)) //testing("Active turf found. Return value of compare(): [is_active]") - if(!excited) //make sure we aren't already excited - excited = 1 - SSair.active_turfs |= src + excited = TRUE + SSair.active_turfs |= src UNSETEMPTY(atmos_adjacent_turfs) if (atmos_adjacent_turfs) src.atmos_adjacent_turfs = atmos_adjacent_turfs