mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
refactor: Only sort named machine lists at mapload end. (#27081)
This commit is contained in:
committed by
GitHub
parent
7f7f9c6e0e
commit
4c937d62ff
@@ -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...")
|
||||
|
||||
@@ -209,7 +209,9 @@
|
||||
set_pixel_offsets_from_dir(24, -24, 24, -24)
|
||||
|
||||
GLOB.air_alarms += src
|
||||
GLOB.air_alarms = sortAtom(GLOB.air_alarms)
|
||||
|
||||
if(!mapload)
|
||||
GLOB.air_alarms = sortAtom(GLOB.air_alarms)
|
||||
|
||||
wires = new(src)
|
||||
|
||||
|
||||
@@ -131,7 +131,6 @@
|
||||
armor = list(MELEE = 20, BULLET = 20, LASER = 10, ENERGY = 100, BOMB = 30, RAD = 100, FIRE = 90, ACID = 50)
|
||||
..()
|
||||
GLOB.apcs += src
|
||||
GLOB.apcs = sortAtom(GLOB.apcs)
|
||||
|
||||
wires = new(src)
|
||||
|
||||
@@ -179,6 +178,7 @@
|
||||
A.powernet.powernet_apc = src
|
||||
|
||||
if(!mapload)
|
||||
GLOB.apcs = sortAtom(GLOB.apcs)
|
||||
return
|
||||
|
||||
electronics_state = APC_ELECTRONICS_SECURED
|
||||
|
||||
Reference in New Issue
Block a user