projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
117f208
)
Fix mesh glitches on MapBlock boundaries
author
Perttu Ahola
<celeron55@gmail.com>
Tue, 27 Nov 2012 17:00:09 +0000
(19:00 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Tue, 27 Nov 2012 17:00:09 +0000
(19:00 +0200)
src/mapblock_mesh.cpp
patch
|
blob
|
history
diff --git
a/src/mapblock_mesh.cpp
b/src/mapblock_mesh.cpp
index 9ae9b21c07058d7be6cce5ba33cc27edeeab807e..fdeb31f4da5abc642f65816fd046dbfea82a6f3e 100644
(file)
--- 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<
2
6; i++)
{
- const v3s16 &dir = g_6dirs[i];
+ const v3s16 &dir = g_
2
6dirs[i];
v3s16 bp = m_blockpos + dir;
MapBlock *b = map->getBlockNoCreateNoEx(bp);
if(b)