Skip to content
Snippets Groups Projects
Commit 70074800 authored by RealBadAngel's avatar RealBadAngel
Browse files

Bugfix in makeCuboid - apply rotations to all faces when 1 tile is given.

parent 33ca115a
No related branches found
No related tags found
No related merge requests found
...@@ -99,9 +99,9 @@ void makeCuboid(MeshCollector *collector, const aabb3f &box, ...@@ -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]), 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: case 0:
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment