mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Merge pull request #39826 from AutomaticFrenzy/patch/atmos-init
Slash SSatmos init time by 93%
This commit is contained in:
committed by
yogstation13-bot
parent
15d39d4429
commit
e2a54f7d09
@@ -288,9 +288,12 @@ SUBSYSTEM_DEF(air)
|
||||
var/list/active_turfs = src.active_turfs
|
||||
var/times_fired = ++src.times_fired
|
||||
|
||||
// Clear active turfs - faster than removing every single turf in the world
|
||||
// one-by-one, and Initalize_Atmos only ever adds `src` back in.
|
||||
active_turfs.Cut()
|
||||
|
||||
for(var/thing in turfs_to_init)
|
||||
var/turf/T = thing
|
||||
active_turfs -= T
|
||||
if (T.blocks_air)
|
||||
continue
|
||||
T.Initalize_Atmos(times_fired)
|
||||
|
||||
Reference in New Issue
Block a user