From 2cc80a06944fc44fca5f6f97e689605f1d5fcf78 Mon Sep 17 00:00:00 2001 From: Chinsky Date: Sun, 22 Jun 2014 22:17:56 +0400 Subject: [PATCH] Fix for a runtime. --- code/controllers/_DynamicAreaLighting_TG.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/controllers/_DynamicAreaLighting_TG.dm b/code/controllers/_DynamicAreaLighting_TG.dm index 9e90fc0ec67..c11bda0f0c5 100644 --- a/code/controllers/_DynamicAreaLighting_TG.dm +++ b/code/controllers/_DynamicAreaLighting_TG.dm @@ -231,7 +231,9 @@ turf/proc/update_lumcount(amount, _lcolor, removing = 0) l_color = null // All our color is gone, no color for us. else if (colors && colors.len > 1) var/maxdepth = 3 // Will blend 3 colors, anymore than that and it looks bad or we will get lag on every tile update. - var/currentblended = MixColors(colors.Copy(1,maxdepth+1)) + var/currentblended = colors + if (colors.len > maxdepth) + currentblended = MixColors(colors.Copy(1,maxdepth+1)) if (currentblended) //world << "Ended up with [currentblended]"