fixes huge roundstart bugs

This commit is contained in:
duncathan
2016-03-30 16:07:35 -06:00
parent 09925f6587
commit 3525bcfcbb
5 changed files with 23 additions and 18 deletions
+6 -2
View File
@@ -181,13 +181,17 @@ var/datum/subsystem/air/SSair
var/list/turfs_to_init = block(locate(1, 1, z_start), locate(world.maxx, world.maxy, z_finish))
for(var/turf/t in turfs_to_init)
for(var/thing in turfs_to_init)
var/turf/t = thing
t.CalculateAdjacentTurfs()
active_turfs -= t
if(t.blocks_air)
continue
if(istype(t, /turf/open/space))
continue //don't need to initialize these; just slows down roundstart without any real benefit
var/turf/open/T = t
T.excited = 0
@@ -200,7 +204,7 @@ var/datum/subsystem/air/SSair
var/is_active = T.air.compare(enemy_air)
if(is_active)
testing("Active turf found. Return value of compare(): [is_active]")
//testing("Active turf found. Return value of compare(): [is_active]")
T.excited = 1
active_turfs |= T
break