From 2967032ecca3477c9fddc83218729310fb59526c Mon Sep 17 00:00:00 2001 From: Aaron Griffith Date: Sun, 1 Dec 2013 16:53:46 -0500 Subject: [PATCH] added smooth-lighting exception for ice (see issue #1032) --- overviewer_core/src/primitives/smooth-lighting.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/overviewer_core/src/primitives/smooth-lighting.c b/overviewer_core/src/primitives/smooth-lighting.c index 6e3da54..e35935f 100644 --- a/overviewer_core/src/primitives/smooth-lighting.c +++ b/overviewer_core/src/primitives/smooth-lighting.c @@ -216,9 +216,9 @@ smooth_lighting_draw(void *data, RenderState *state, PyObject *src, PyObject *ma int light_right = 1; RenderPrimitiveSmoothLighting *self = (RenderPrimitiveSmoothLighting *)data; - /* special case for leaves, water 8, water 9 + /* special case for leaves, water 8, water 9, ice 79 -- these are also smooth-lit! */ - if (state->block != 18 && state->block != 8 && state->block != 9 && is_transparent(state->block)) + if (state->block != 18 && state->block != 8 && state->block != 9 && state->block != 79 && is_transparent(state->block)) { /* transparent blocks are rendered as usual, with flat lighting */ primitive_lighting.draw(data, state, src, mask, mask_light);