Fix mesh glitches on MapBlock boundaries
authorPerttu Ahola <celeron55@gmail.com>
Tue, 27 Nov 2012 17:00:09 +0000 (19:00 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 27 Nov 2012 17:00:09 +0000 (19:00 +0200)
src/mapblock_mesh.cpp

index 9ae9b21c07058d7be6cce5ba33cc27edeeab807e..fdeb31f4da5abc642f65816fd046dbfea82a6f3e 100644 (file)
@@ -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)