Merge pull request #36888 from Robustin/initatmos

Removes unecessary compares in turf atmos init
This commit is contained in:
Jordan Brown
2018-04-02 09:32:29 -04:00
committed by CitadelStationBot
parent 7de2934a26
commit 16896254cf
+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