Fix for a runtime.

This commit is contained in:
Chinsky
2014-06-22 22:17:56 +04:00
parent a5ae759703
commit 2cc80a0694
+3 -1
View File
@@ -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]"