From: Perttu Ahola Date: Tue, 27 Nov 2012 17:00:09 +0000 (+0200) Subject: Fix mesh glitches on MapBlock boundaries X-Git-Tag: 0.4.4~48 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5c26972cddb78f3f93d5d6e0428a6b282fde4bfe;p=oweals%2Fminetest.git Fix mesh glitches on MapBlock boundaries --- diff --git a/src/mapblock_mesh.cpp b/src/mapblock_mesh.cpp index 9ae9b21c0..fdeb31f4d 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)