mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2025-12-10 04:26:09 +00:00
a
This commit is contained in:
@@ -151,6 +151,7 @@ GLOBAL_LIST_INIT(multiz_hole_baseturfs, typecacheof(list(
|
||||
lc_bottomleft = old_lc_bottomleft
|
||||
if (old_opacity != opacity || dynamic_lighting != old_dynamic_lighting)
|
||||
reconsider_lights()
|
||||
updateVisibility(src)
|
||||
|
||||
if (dynamic_lighting != old_dynamic_lighting)
|
||||
if (IS_DYNAMIC_LIGHTING(src))
|
||||
|
||||
@@ -32,8 +32,6 @@
|
||||
levelupdate()
|
||||
PROFILE_TICK
|
||||
// HOOK FOR MOB/FREELOOK SYSTEM
|
||||
updateVisibility(src)
|
||||
#warn above
|
||||
PROFILE_TICK
|
||||
|
||||
// This is not great.
|
||||
|
||||
@@ -18,6 +18,7 @@ GLOBAL_LIST(topic_status_cache)
|
||||
//This happens after the Master subsystem new(s) (it's a global datum)
|
||||
//So subsystems globals exist, but are not initialised
|
||||
/world/New()
|
||||
LINE_PROFILE_START
|
||||
var/debug_server = world.GetConfig("env", "AUXTOOLS_DEBUG_DLL")
|
||||
if (debug_server)
|
||||
call(debug_server, "auxtools_init")()
|
||||
@@ -422,7 +423,7 @@ GLOBAL_REAL_VAR(world_log_redirected) = FALSE
|
||||
. += "[GLOB.using_map.station_short], "
|
||||
|
||||
. += "[get_security_level()] alert, "
|
||||
|
||||
|
||||
. += "[GLOB.clients.len] players"
|
||||
|
||||
status = .
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
item_state_slots = list(slot_r_hand_str = "headset", slot_l_hand_str = "headset")
|
||||
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))
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
enables_planes = list(VIS_AUGMENTED)
|
||||
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))
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
tgarscreen_path = /datum/tgui_module/crew_monitor/glasses
|
||||
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))
|
||||
|
||||
@@ -161,7 +161,7 @@
|
||||
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))
|
||||
|
||||
@@ -257,7 +257,7 @@
|
||||
flash_protection = FLASH_PROTECTION_MAJOR
|
||||
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))
|
||||
|
||||
|
||||
@@ -40,7 +40,6 @@
|
||||
smooshTetherHolomaps(smoosh_list)
|
||||
|
||||
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?
|
||||
for (var/obj/machinery/station_map/S in station_holomaps)
|
||||
|
||||
@@ -12,10 +12,6 @@
|
||||
/turf/drain_power()
|
||||
return -1
|
||||
|
||||
/turf/simulated/Destroy()
|
||||
updateVisibility(src)
|
||||
return ..()
|
||||
|
||||
// STRUCTURES
|
||||
|
||||
/obj/structure/Destroy()
|
||||
@@ -34,7 +30,8 @@
|
||||
|
||||
/obj/effect/Initialize(mapload)
|
||||
. = ..()
|
||||
updateVisibility(src)
|
||||
if(!mapload)
|
||||
updateVisibility(src)
|
||||
|
||||
// DOORS
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
var/list/chunks = list()
|
||||
var/ready = 0
|
||||
var/chunk_type = /datum/chunk
|
||||
/// are we generated at all?
|
||||
var/any_generated = FALSE
|
||||
|
||||
/datum/visualnet/New()
|
||||
..()
|
||||
@@ -30,6 +32,7 @@
|
||||
y &= ~0xf
|
||||
var/key = "[x],[y],[z]"
|
||||
if(!chunks[key])
|
||||
any_generated = TRUE
|
||||
chunks[key] = new chunk_type(null, x, y, z)
|
||||
|
||||
return chunks[key]
|
||||
@@ -64,7 +67,7 @@
|
||||
|
||||
/datum/visualnet/proc/updateVisibility(atom/A, var/opacity_check = 1)
|
||||
|
||||
if(!SSticker || (opacity_check && !A.opacity))
|
||||
if(!any_generated || (opacity_check && !A.opacity))
|
||||
return
|
||||
majorChunkChange(A, 2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user