From acfc98c60819fd24f10b00c0e38e3d623da53344 Mon Sep 17 00:00:00 2001 From: Ccomp5950 Date: Tue, 18 Feb 2014 05:40:06 -0600 Subject: [PATCH] This is rather ironic... My VERY FIRST PR, I used it to make ghost chat be bold, instead of using viewers() to figure out what ghosts could see the mob, I used get_mob_in_view() which sounded pretty descriptive. Unfortunately for me it was one of the most CPU intensive ways of determining who could view the speaker for this. So yeah, removing the second get_mobs_in_view and replacing it with viewers() Yes this code has been in since Oct/Nov time frame :( --- code/modules/mob/living/say.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm index fbd7950cd34..8f0b043d4cd 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -329,7 +329,7 @@ var/list/department_radio_keys = list( var/list/listening listening = get_mobs_in_view(message_range, src) - var/list/onscreen = get_mobs_in_view(7, src) + var/list/onscreen = viewers() for(var/mob/M in player_list) if (!M.client) continue //skip monkeys and leavers