mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-22 20:57:23 +01:00
[MIRROR] Removes sleeping from the code in more places (#10611)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
174fb57a2c
commit
de641ab6f8
@@ -38,7 +38,7 @@
|
||||
|
||||
var/prev_shuttle_queue_state = SSshuttles.block_init_queue
|
||||
SSshuttles.block_init_queue = TRUE
|
||||
var/machinery_was_awake = SSmachines.suspend() // Suspend machinery (if it was not already suspended)
|
||||
//var/machinery_was_awake = SSmachines.suspend() // Suspend machinery (if it was not already suspended) //Old way to keep atmos machines from processing while being loaded. This killed ALL machines in the world...not good.
|
||||
|
||||
var/list/atom/atoms = list()
|
||||
var/list/area/areas = list()
|
||||
@@ -55,6 +55,8 @@
|
||||
else if(istype(A, /obj/machinery/atmospherics))
|
||||
atmos_machines += A
|
||||
atoms |= areas
|
||||
for(var/obj/machinery/atmospherics/atmos_to_reenable as anything in atmos_machines)
|
||||
atmos_to_reenable.being_loaded = TRUE
|
||||
|
||||
admin_notice(span_danger("Initializing newly created atom(s) in submap."), R_DEBUG)
|
||||
SSatoms.InitializeAtoms(areas + turfs + atoms)
|
||||
@@ -69,8 +71,13 @@
|
||||
for(var/area/A as anything in areas)
|
||||
A.power_change()
|
||||
|
||||
for(var/obj/machinery/atmospherics/atmos_to_reenable as anything in atmos_machines)
|
||||
atmos_to_reenable.being_loaded = FALSE
|
||||
|
||||
/*//Old way to keep atmos machines from processing while being loaded. This killed ALL machines in the world...not good.
|
||||
if(machinery_was_awake)
|
||||
SSmachines.wake() // Wake only if it was awake before we tried to suspended it.
|
||||
*///Old way to keep atmos machines from processing while being loaded. This killed ALL machines in the world...not good.
|
||||
SSshuttles.block_init_queue = prev_shuttle_queue_state
|
||||
SSshuttles.process_init_queues() // We will flush the queue unless there were other blockers, in which case they will do it.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user