mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-31 12:32:28 +00:00
Optimize playsound, starlight, and visualnet generation (#13540)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//UPDATE TRIGGERS, when the chunk (and the surrounding chunks) should update.
|
||||
|
||||
/proc/updateVisibility(atom/A, var/opacity_check = TRUE)
|
||||
if(SSticker)
|
||||
if(SSticker.current_state >= GAME_STATE_PLAYING)
|
||||
for(var/datum/visualnet/VN in visual_nets)
|
||||
VN.update_visibility(A, opacity_check)
|
||||
|
||||
|
||||
@@ -293,7 +293,7 @@ proc/get_radio_key_from_channel(var/channel)
|
||||
italics = 1
|
||||
sound_vol *= 0.5 //muffle the sound a bit, so it's like we're actually talking through contact
|
||||
|
||||
get_mobs_and_objs_in_view_fast(T, message_range, listening, listening_obj, ghost_hearing)
|
||||
get_mobs_or_objs_in_view(T, message_range, listening, listening_obj, ghost_hearing)
|
||||
|
||||
var/list/hear_clients = list()
|
||||
for(var/m in listening)
|
||||
|
||||
@@ -199,7 +199,7 @@
|
||||
|
||||
var/list/mobs = list()
|
||||
var/list/objs = list()
|
||||
get_mobs_and_objs_in_view_fast(T, range, mobs, objs, ghost_hearing)
|
||||
get_mobs_or_objs_in_view(T, range, mobs, objs, ghost_hearing)
|
||||
|
||||
|
||||
for(var/m in mobs)
|
||||
|
||||
Reference in New Issue
Block a user