From: Perttu Ahola Date: Tue, 27 Nov 2012 17:00:09 +0000 (+0200) Subject: Fix mesh glitches on MapBlock boundaries X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=5c26972cddb78f3f93d5d6e0428a6b282fde4bfe;p=zefram%2Fminetest%2Fminetest_engine.git Fix mesh glitches on MapBlock boundaries --- diff --git a/src/mapblock_mesh.cpp b/src/mapblock_mesh.cpp index 9ae9b21c..fdeb31f4 100644 --- a/src/mapblock_mesh.cpp +++ b/src/mapblock_mesh.cpp @@ -77,9 +77,9 @@ void MeshMakeData::fill(MapBlock *block) // Get map Map *map = block->getParent(); - for(u16 i=0; i<6; i++) + for(u16 i=0; i<26; i++) { - const v3s16 &dir = g_6dirs[i]; + const v3s16 &dir = g_26dirs[i]; v3s16 bp = m_blockpos + dir; MapBlock *b = map->getBlockNoCreateNoEx(bp); if(b)