From 744a78e9322d207b753422137457ddca5025efd2 Mon Sep 17 00:00:00 2001 From: vuonojenmustaturska Date: Sat, 25 Nov 2017 21:24:38 +0200 Subject: [PATCH] Maybe fixes meson hearing exploit (#33005) * Not all of wisdom brings joy * Serves me right for making changes based on how i remember the code working --- code/__HELPERS/game.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm index b5d75a6f63..57fe0559fa 100644 --- a/code/__HELPERS/game.dm +++ b/code/__HELPERS/game.dm @@ -225,7 +225,8 @@ else // A variation of get_hear inlined here to take advantage of the compiler's fastpath for obj/mob in view var/lum = T.luminosity T.luminosity = 6 // This is the maximum luminosity - processing_list = viewers(R, T) + for(var/mob/M in view(R, T)) + processing_list += M for(var/obj/O in view(R, T)) processing_list += O T.luminosity = lum