diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-11-27 19:00:09 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-11-27 19:00:09 +0200 |
commit | 5c26972cddb78f3f93d5d6e0428a6b282fde4bfe (patch) | |
tree | adf2a31d31108852541314bfd4305e92386b95e0 | |
parent | 117f2088263833a40b672b702fb215e52b88be5c (diff) | |
download | minetest-5c26972cddb78f3f93d5d6e0428a6b282fde4bfe.tar.gz minetest-5c26972cddb78f3f93d5d6e0428a6b282fde4bfe.tar.bz2 minetest-5c26972cddb78f3f93d5d6e0428a6b282fde4bfe.zip |
Fix mesh glitches on MapBlock boundaries
-rw-r--r-- | src/mapblock_mesh.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |