From 6b511e5e796990f1bfee2c5724fd853659d17862 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Mon, 18 Mar 2013 14:12:02 -0400 Subject: [PATCH] Fix unknown nodes showing up as black --- TileGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TileGenerator.cpp b/TileGenerator.cpp index 77f8681..f0ae648 100644 --- a/TileGenerator.cpp +++ b/TileGenerator.cpp @@ -485,9 +485,9 @@ inline void TileGenerator::renderMapBlock(const unsigned_string &mapBlock, const m_image->tpixels[imageY][imageX] = rgb2int(c.r, c.g, c.b); m_readedPixels[z] |= (1 << x); m_blockPixelAttributes.attribute(15 - z, xBegin + x).height = pos.y * 16 + y; - } - else { + } else { m_unknownNodes.insert(name); + continue; } break; }