mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 06:29:23 +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:
@@ -280,7 +280,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/computer/auxiliary_base, 32)
|
||||
var/turf/T = get_turf(user)
|
||||
var/obj/machinery/computer/auxiliary_base/AB
|
||||
|
||||
for (var/obj/machinery/computer/auxiliary_base/A in GLOB.machines)
|
||||
for (var/obj/machinery/computer/auxiliary_base/A as anything in SSmachines.get_machines_by_type_and_subtypes(/obj/machinery/computer/auxiliary_base))
|
||||
if(is_station_level(A.z))
|
||||
AB = A
|
||||
break
|
||||
@@ -362,7 +362,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/computer/auxiliary_base, 32)
|
||||
to_chat(user, span_warning("This device is only to be used in a mining zone."))
|
||||
return
|
||||
var/obj/machinery/computer/auxiliary_base/aux_base_console
|
||||
for(var/obj/machinery/computer/auxiliary_base/ABC in GLOB.machines)
|
||||
for(var/obj/machinery/computer/auxiliary_base/ABC as anything in SSmachines.get_machines_by_type_and_subtypes(/obj/machinery/computer/auxiliary_base))
|
||||
if(get_dist(landing_spot, ABC) <= console_range)
|
||||
aux_base_console = ABC
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user