mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-21 13:56:31 +01:00
runtime maploading: fifth time is the charm (#5524)
Co-authored-by: VM_USER <VM_USER> Co-authored-by: silicons <no@you.cat>
This commit is contained in:
co-authored by
VM_USER <VM_USER>
silicons
parent
c1ad8f4ce0
commit
fd5e67ff71
@@ -67,7 +67,7 @@
|
||||
data["all_sensors"] = sensors
|
||||
if(focus)
|
||||
data["focus"] = focus.return_reading_data()
|
||||
data["map_levels"] = GLOB.using_map.get_map_levels(T.z)
|
||||
data["map_levels"] = (LEGACY_MAP_DATUM).get_map_levels(T.z)
|
||||
|
||||
ui = SSnanoui.try_update_ui(user, src, ui_key, ui, data, force_open)
|
||||
if (!ui)
|
||||
@@ -90,7 +90,7 @@
|
||||
if(!T) // Safety check
|
||||
return
|
||||
if(T)
|
||||
levels += GLOB.using_map.get_map_levels(T.z, FALSE)
|
||||
levels += (LEGACY_MAP_DATUM).get_map_levels(T.z, FALSE)
|
||||
for(var/obj/machinery/power/sensor/S in GLOB.machines)
|
||||
if(T && (S.loc.z == T.z) || (S.loc.z in levels) || (S.long_range)) // Consoles have range on their Z-Level. Sensors with long_range var will work between Z levels.
|
||||
if(S.name_tag == "#UNKN#") // Default name. Shouldn't happen!
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@
|
||||
var/turf/T = get_turf(nano_host())
|
||||
if(!T)
|
||||
return
|
||||
var/valid_z_levels = (GetConnectedZlevels(T.z) & GLOB.using_map.station_levels)
|
||||
var/valid_z_levels = (GetConnectedZlevels(T.z) & (LEGACY_MAP_DATUM).station_levels)
|
||||
for(var/obj/machinery/power/supermatter/S in GLOB.machines)
|
||||
// Delaminating, not within coverage, not on a tile.
|
||||
if(S.grav_pulling || S.exploded || !(S.z in valid_z_levels) || !istype(S.loc, /turf/))
|
||||
|
||||
Reference in New Issue
Block a user