refactor: Only sort named machine lists at mapload end. (#27081)

This commit is contained in:
warriorstar-orion
2024-10-22 05:33:16 -04:00
committed by GitHub
parent 7f7f9c6e0e
commit 4c937d62ff
3 changed files with 8 additions and 2 deletions
@@ -12,6 +12,10 @@ SUBSYSTEM_DEF(late_mapping)
var/list/obj/effect/spawner/bridge/bridge_spawners = list()
/datum/controller/subsystem/late_mapping/Initialize()
// Sort all the air machines we initialized during mapload by name all at once
GLOB.air_alarms = sortAtom(GLOB.air_alarms)
GLOB.apcs = sortAtom(GLOB.apcs)
if(length(maze_generators))
var/watch = start_watch()
log_startup_progress("Generating mazes...")