Skip to content

Commit 7007480

Browse files
committedJul 20, 2014
Bugfix in makeCuboid - apply rotations to all faces when 1 tile is given.
1 parent 33ca115 commit 7007480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

Diff for: ‎src/content_mapblock.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ void makeCuboid(MeshCollector *collector, const aabb3f &box,
9999
video::S3DVertex(min.X,min.Y,min.Z, 0,0,-1, c, txc[20],txc[23]),
100100
};
101101

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

0 commit comments

Comments
 (0)
Please sign in to comment.