Add rotation for plantlike drawtype.
authorRealBadAngel <maciej.kasatkin@o2.pl>
Mon, 21 Jul 2014 22:32:03 +0000 (00:32 +0200)
committerRealBadAngel <maciej.kasatkin@o2.pl>
Mon, 21 Jul 2014 22:32:03 +0000 (00:32 +0200)
src/content_mapblock.cpp

index a00d9f3073dafbeb762d43b09f32bed65845edbb..f12dd11d5b034da3b411614978900a974c33f464 100644 (file)
@@ -1119,12 +1119,12 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
                                if(j == 0)
                                {
                                        for(u16 i=0; i<4; i++)
-                                               vertices[i].Pos.rotateXZBy(46);
+                                               vertices[i].Pos.rotateXZBy(46 + n.param2);
                                }
                                else if(j == 1)
                                {
                                        for(u16 i=0; i<4; i++)
-                                               vertices[i].Pos.rotateXZBy(-44);
+                                               vertices[i].Pos.rotateXZBy(-44 + n.param2);
                                }
 
                                for(u16 i=0; i<4; i++)