Merge pull request #6238 from Citadel-Station-13/upstream-merge-36888

[MIRROR] Removes unecessary compares in turf atmos init
This commit is contained in:
LetterJay
2018-04-02 09:11:59 -05:00
committed by GitHub
+3 -7
View File
@@ -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