From 596a7160b8cf703e9c268f777652921c0900c492 Mon Sep 17 00:00:00 2001 From: PsiOmega Date: Sat, 22 Nov 2014 12:00:21 +0100 Subject: [PATCH] Fixes light going through walls. See https://github.com/tgstation/-tg-station/pull/5972 and https://github.com/tgstation/-tg-station/issues/2788. --- code/controllers/_DynamicAreaLighting_TG.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/_DynamicAreaLighting_TG.dm b/code/controllers/_DynamicAreaLighting_TG.dm index a93a7b6440..efa2a226b1 100644 --- a/code/controllers/_DynamicAreaLighting_TG.dm +++ b/code/controllers/_DynamicAreaLighting_TG.dm @@ -95,7 +95,7 @@ datum/light_source if(owner.loc && owner.luminosity > 0) readrgb(owner.l_color) effect = list() - for(var/turf/T in view(owner.get_light_range(),owner)) + for(var/turf/T in view(owner.get_light_range(),get_turf(owner))) var/delta_lumen = lum(T) if(delta_lumen > 0) effect[T] = delta_lumen