From 51e5f3f2b6ff57ac83871360e0734dc86ae3aab9 Mon Sep 17 00:00:00 2001 From: Matti Ruohonen Date: Mon, 14 Oct 2013 16:48:41 +0300 Subject: [PATCH] Fix transparent check for block ids > 255. (getArrayByte3D -> getArrayShort3D) --- overviewer_core/src/primitives/base.c | 6 +++--- overviewer_core/src/primitives/clear-base.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/overviewer_core/src/primitives/base.c b/overviewer_core/src/primitives/base.c index e6e9515..ba7dfbc 100644 --- a/overviewer_core/src/primitives/base.c +++ b/overviewer_core/src/primitives/base.c @@ -61,9 +61,9 @@ base_occluded(void *data, RenderState *state, int x, int y, int z) { !render_mode_hidden(state->rendermode, x-1, y, z) && !render_mode_hidden(state->rendermode, x, y, z+1) && !render_mode_hidden(state->rendermode, x, y+1, z) && - !is_transparent(getArrayByte3D(state->blocks, x-1, y, z)) && - !is_transparent(getArrayByte3D(state->blocks, x, y, z+1)) && - !is_transparent(getArrayByte3D(state->blocks, x, y+1, z))) { + !is_transparent(getArrayShort3D(state->blocks, x-1, y, z)) && + !is_transparent(getArrayShort3D(state->blocks, x, y, z+1)) && + !is_transparent(getArrayShort3D(state->blocks, x, y+1, z))) { return 1; } diff --git a/overviewer_core/src/primitives/clear-base.c b/overviewer_core/src/primitives/clear-base.c index 3ee36dc..ba8f475 100644 --- a/overviewer_core/src/primitives/clear-base.c +++ b/overviewer_core/src/primitives/clear-base.c @@ -23,9 +23,9 @@ clear_base_occluded(void *data, RenderState *state, int x, int y, int z) { !render_mode_hidden(state->rendermode, x-1, y, z) && !render_mode_hidden(state->rendermode, x, y, z+1) && !render_mode_hidden(state->rendermode, x, y+1, z) && - !is_transparent(getArrayByte3D(state->blocks, x-1, y, z)) && - !is_transparent(getArrayByte3D(state->blocks, x, y, z+1)) && - !is_transparent(getArrayByte3D(state->blocks, x, y+1, z))) { + !is_transparent(getArrayShort3D(state->blocks, x-1, y, z)) && + !is_transparent(getArrayShort3D(state->blocks, x, y, z+1)) && + !is_transparent(getArrayShort3D(state->blocks, x, y+1, z))) { return 1; }