From df8c0813c3f2ea37f65f277454403a854ea0223d Mon Sep 17 00:00:00 2001 From: Song Minjae Date: Mon, 2 Jan 2017 14:32:23 +0900 Subject: [PATCH] fuck Former-commit-id: c48f789e138b5d9f78422a5ec93f4f973225fe2f Former-commit-id: 9843d2c1482d6bd38c65bc2036696dce5901dd91 --- src/net/torvald/terrarum/mapdrawer/LightmapRenderer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/torvald/terrarum/mapdrawer/LightmapRenderer.kt b/src/net/torvald/terrarum/mapdrawer/LightmapRenderer.kt index b6de1e4cf..cc5121f77 100644 --- a/src/net/torvald/terrarum/mapdrawer/LightmapRenderer.kt +++ b/src/net/torvald/terrarum/mapdrawer/LightmapRenderer.kt @@ -293,7 +293,7 @@ object LightmapRenderer { ambient = ambient maxBlend darkenColoured(getLight(x - 1, y + 1) ?: 0, scaleColour(thisTileOpacity, 1.4142f)) ambient = ambient maxBlend darkenColoured(getLight(x + 1, y + 1) ?: 0, scaleColour(thisTileOpacity, 1.4142f)) ambient = ambient maxBlend darkenColoured(getLight(x , y - 1) ?: 0, thisTileOpacity) - ambient = ambient maxBlend darkenColoured(getLight(x , y - 1) ?: 0, thisTileOpacity) + ambient = ambient maxBlend darkenColoured(getLight(x , y + 1) ?: 0, thisTileOpacity) ambient = ambient maxBlend darkenColoured(getLight(x - 1, y ) ?: 0, thisTileOpacity) ambient = ambient maxBlend darkenColoured(getLight(x + 1, y ) ?: 0, thisTileOpacity) return lightLevelThis maxBlend ambient