From df637898efea9f9f1c641f0d2b23091148bd592f Mon Sep 17 00:00:00 2001 From: MrPerson Date: Thu, 23 Jun 2016 02:51:55 -0700 Subject: [PATCH] Fixes mechs breaking lights by walking onto them Fixes #17271 --- code/modules/lighting/lighting_system.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/modules/lighting/lighting_system.dm b/code/modules/lighting/lighting_system.dm index 13a1cf50f7b..d65331be03a 100644 --- a/code/modules/lighting/lighting_system.dm +++ b/code/modules/lighting/lighting_system.dm @@ -129,12 +129,10 @@ if(AM == owner) continue if(AM.opacity) - range = 0 + range = 1 break owner.luminosity = range - if (!range) - return 0 var/center_strength = 0 if (cap <= 0) center_strength = LIGHTING_CAP/LIGHTING_LUM_FOR_FULL_BRIGHT*(luminosity)