From 5909abb08008f43f10179cfbd0d43e5ad7c7d877 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 13523072cab..93369793586 100644 --- a/code/modules/mob/living/say.dm +++ b/code/modules/mob/living/say.dm @@ -302,7 +302,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