glass drawing fix

This commit is contained in:
darkrose 2013-05-16 00:12:42 +10:00
parent 20029080fa
commit 0fa0585608
1 changed files with 6 additions and 0 deletions

View File

@ -791,26 +791,32 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
for(u16 i=0; i<4; i++) {
vertices[i].Pos.rotateXZBy(0);
}
break;
case 1: // Y+
for(u16 i=0; i<4; i++) {
vertices[i].Pos.rotateYZBy(-90);
}
break;
case 2: // X+
for(u16 i=0; i<4; i++) {
vertices[i].Pos.rotateXZBy(-90);
}
break;
case 3: // Z-
for(u16 i=0; i<4; i++) {
vertices[i].Pos.rotateXZBy(180);
}
break;
case 4: // Y-
for(u16 i=0; i<4; i++) {
vertices[i].Pos.rotateYZBy(90);
}
break;
case 5: // X-
for(u16 i=0; i<4; i++) {
vertices[i].Pos.rotateXZBy(90);
}
break;
default:;
}