Skip to content
Permalink
Browse files

Bugfix in makeCuboid - apply rotations to all faces when 1 tile is gi…

…ven.
  • Loading branch information
RealBadAngel committed Jul 20, 2014
1 parent 33ca115 commit 70074800a207974a0c1383275186cefe6955f297
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/content_mapblock.cpp
@@ -99,9 +99,9 @@ void makeCuboid(MeshCollector *collector, const aabb3f &box,
video::S3DVertex(min.X,min.Y,min.Z, 0,0,-1, c, txc[20],txc[23]),
};

for(int i = 0; i < tilecount; i++)
for(int i = 0; i < 6; i++)
{
switch (tiles[i].rotation)
switch (tiles[MYMIN(i, tilecount-1)].rotation)
{
case 0:
break;

0 comments on commit 7007480

Please sign in to comment.
You can’t perform that action at this time.