Skip to content

Commit

Permalink
Plantlike meshoptions: fix degrotate. (#4512)
Browse files Browse the repository at this point in the history
This snuck in with the meshoptions patch and accidentally kills
degrotate plants. Thanks to @HybridDog for finding this.
  • Loading branch information
sofar committed Sep 12, 2016
1 parent af4b63f commit d83bcf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content_mapblock.cpp
Expand Up @@ -1138,7 +1138,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
u8 p2mesh = 0;
if (f.param_type_2 == CPT2_DEGROTATE)
rotate_degree = n.param2 * 2;
else if (f.param_type_2 != CPT2_MESHOPTIONS) {
if (f.param_type_2 != CPT2_MESHOPTIONS) {
if (j == 0) {
for (u16 i = 0; i < 4; i++)
vertices[i].Pos.rotateXZBy(46 + rotate_degree);
Expand Down

0 comments on commit d83bcf2

Please sign in to comment.