mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
[MIRROR] Machine list is now stored in SSmachines | Remove excessive use of global lists for specific machine types [MDB IGNORE] (#22481)
* Machine list is now stored in SSmachines | Remove excessive use of global lists for specific machine types * Resolve merge conflicts * Modular adjustments * destroy this double return on destroy --------- Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com> Co-authored-by: Giz <vinylspiders@gmail.com>
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
/obj/machinery/computer/camera_advanced/base_construction/aux/find_spawn_spot()
|
||||
//Aux base controller. Where the eyeobj will spawn.
|
||||
var/obj/machinery/computer/auxiliary_base/aux_controller
|
||||
for(var/obj/machinery/computer/auxiliary_base/potential_aux_console in GLOB.machines)
|
||||
for(var/obj/machinery/computer/auxiliary_base/potential_aux_console as anything in SSmachines.get_machines_by_type_and_subtypes(/obj/machinery/computer/auxiliary_base))
|
||||
if(istype(get_area(potential_aux_console), allowed_area))
|
||||
aux_controller = potential_aux_console
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user