From af1aea7e71aadbdba62a201869f9f135ebf96570 Mon Sep 17 00:00:00 2001 From: vuonojenmustaturska Date: Sat, 14 Oct 2017 00:29:50 +0300 Subject: [PATCH] Small lighting perf tweak (#31635) * lightshit * Revert "lightshit" This reverts commit 25a1b6e4a104546c6393d3c472c0412f7580fe96. * bfghsfg * kreegah * honk --- code/modules/lighting/lighting_corner.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/lighting/lighting_corner.dm b/code/modules/lighting/lighting_corner.dm index c51e7feb7a..7288d47280 100644 --- a/code/modules/lighting/lighting_corner.dm +++ b/code/modules/lighting/lighting_corner.dm @@ -90,6 +90,9 @@ GLOBAL_LIST_INIT(LIGHTING_CORNER_DIAGONAL, list(NORTHEAST, SOUTHEAST, SOUTHWEST, lum_g += delta_g lum_b += delta_b + if ((delta_r+delta_g+delta_b) == 0) + return + if (!needs_update) needs_update = TRUE GLOB.lighting_update_corners += src