This commit is contained in:
silicons
2022-05-14 10:55:41 -07:00
parent 03c201773a
commit 42e308a8d4
7 changed files with 14 additions and 15 deletions

View File

@@ -151,6 +151,7 @@ GLOBAL_LIST_INIT(multiz_hole_baseturfs, typecacheof(list(
lc_bottomleft = old_lc_bottomleft lc_bottomleft = old_lc_bottomleft
if (old_opacity != opacity || dynamic_lighting != old_dynamic_lighting) if (old_opacity != opacity || dynamic_lighting != old_dynamic_lighting)
reconsider_lights() reconsider_lights()
updateVisibility(src)
if (dynamic_lighting != old_dynamic_lighting) if (dynamic_lighting != old_dynamic_lighting)
if (IS_DYNAMIC_LIGHTING(src)) if (IS_DYNAMIC_LIGHTING(src))

View File

@@ -32,8 +32,6 @@
levelupdate() levelupdate()
PROFILE_TICK PROFILE_TICK
// HOOK FOR MOB/FREELOOK SYSTEM // HOOK FOR MOB/FREELOOK SYSTEM
updateVisibility(src)
#warn above
PROFILE_TICK PROFILE_TICK
// This is not great. // This is not great.

View File

@@ -18,6 +18,7 @@ GLOBAL_LIST(topic_status_cache)
//This happens after the Master subsystem new(s) (it's a global datum) //This happens after the Master subsystem new(s) (it's a global datum)
//So subsystems globals exist, but are not initialised //So subsystems globals exist, but are not initialised
/world/New() /world/New()
LINE_PROFILE_START
var/debug_server = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL") var/debug_server = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL")
if (debug_server) if (debug_server)
call(debug_server, "auxtools_init")() call(debug_server, "auxtools_init")()

View File

@@ -29,7 +29,7 @@
item_state_slots = list(slot_r_hand_str = "headset", slot_l_hand_str = "headset") item_state_slots = list(slot_r_hand_str = "headset", slot_l_hand_str = "headset")
body_parts_covered = 0 body_parts_covered = 0
/obj/item/clothing/glasses/hud/security/Iniialize(mapload) /obj/item/clothing/glasses/hud/security/Initialize(mapload)
. = ..() . = ..()
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_SECURITY_ADVANCED), list(slot_glasses)) AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_SECURITY_ADVANCED), list(slot_glasses))
@@ -65,7 +65,7 @@
enables_planes = list(VIS_AUGMENTED) enables_planes = list(VIS_AUGMENTED)
plane_slots = list(slot_glasses) plane_slots = list(slot_glasses)
/obj/item/clothing/glasses/omnihud/Iniialize(mapload) /obj/item/clothing/glasses/omnihud/Initialize(mapload)
. = ..() . = ..()
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_ID_JOB), list(slot_glasses)) AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_ID_JOB), list(slot_glasses))
@@ -140,7 +140,7 @@
tgarscreen_path = /datum/tgui_module/crew_monitor/glasses tgarscreen_path = /datum/tgui_module/crew_monitor/glasses
enables_planes = list(VIS_AUGMENTED) enables_planes = list(VIS_AUGMENTED)
/obj/item/clothing/glasses/omnihud/med/Iniialize(mapload) /obj/item/clothing/glasses/omnihud/med/Initialize(mapload)
. = ..() . = ..()
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_ID_JOB, DATA_HUD_MEDICAL), list(slot_glasses)) AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_ID_JOB, DATA_HUD_MEDICAL), list(slot_glasses))
@@ -161,7 +161,7 @@
enables_planes = list(VIS_AUGMENTED) enables_planes = list(VIS_AUGMENTED)
/obj/item/clothing/glasses/omnihud/sec/Iniialize(mapload) /obj/item/clothing/glasses/omnihud/sec/Initialize(mapload)
. = ..() . = ..()
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_SECURITY_ADVANCED, DATA_HUD_MEDICAL), list(slot_glasses)) AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_SECURITY_ADVANCED, DATA_HUD_MEDICAL), list(slot_glasses))
@@ -257,7 +257,7 @@
flash_protection = FLASH_PROTECTION_MAJOR flash_protection = FLASH_PROTECTION_MAJOR
enables_planes = list(VIS_AUGMENTED) enables_planes = list(VIS_AUGMENTED)
/obj/item/clothing/glasses/omnihud/all/Iniialize(mapload) /obj/item/clothing/glasses/omnihud/all/Initialize(mapload)
. = ..() . = ..()
AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_SECURITY_ADVANCED, DATA_HUD_MEDICAL), list(slot_glasses)) AddElement(/datum/element/clothing/hud_granter, list(DATA_HUD_SECURITY_ADVANCED, DATA_HUD_MEDICAL), list(slot_glasses))

View File

@@ -40,7 +40,6 @@
smooshTetherHolomaps(smoosh_list) smooshTetherHolomaps(smoosh_list)
holomaps_initialized = TRUE holomaps_initialized = TRUE
admin_notice("<span class='notice'>Holomaps initialized in [round(0.1*(world.timeofday-start_time),0.1)] seconds.</span>", R_DEBUG)
// TODO - Check - They had a delayed init perhaps? // TODO - Check - They had a delayed init perhaps?
for (var/obj/machinery/station_map/S in station_holomaps) for (var/obj/machinery/station_map/S in station_holomaps)

View File

@@ -12,10 +12,6 @@
/turf/drain_power() /turf/drain_power()
return -1 return -1
/turf/simulated/Destroy()
updateVisibility(src)
return ..()
// STRUCTURES // STRUCTURES
/obj/structure/Destroy() /obj/structure/Destroy()
@@ -34,6 +30,7 @@
/obj/effect/Initialize(mapload) /obj/effect/Initialize(mapload)
. = ..() . = ..()
if(!mapload)
updateVisibility(src) updateVisibility(src)
// DOORS // DOORS

View File

@@ -7,6 +7,8 @@
var/list/chunks = list() var/list/chunks = list()
var/ready = 0 var/ready = 0
var/chunk_type = /datum/chunk var/chunk_type = /datum/chunk
/// are we generated at all?
var/any_generated = FALSE
/datum/visualnet/New() /datum/visualnet/New()
..() ..()
@@ -30,6 +32,7 @@
y &= ~0xf y &= ~0xf
var/key = "[x],[y],[z]" var/key = "[x],[y],[z]"
if(!chunks[key]) if(!chunks[key])
any_generated = TRUE
chunks[key] = new chunk_type(null, x, y, z) chunks[key] = new chunk_type(null, x, y, z)
return chunks[key] return chunks[key]
@@ -64,7 +67,7 @@
/datum/visualnet/proc/updateVisibility(atom/A, var/opacity_check = 1) /datum/visualnet/proc/updateVisibility(atom/A, var/opacity_check = 1)
if(!SSticker || (opacity_check && !A.opacity)) if(!any_generated || (opacity_check && !A.opacity))
return return
majorChunkChange(A, 2) majorChunkChange(A, 2)