From: RealBadAngel Date: Mon, 21 Jul 2014 22:32:03 +0000 (+0200) Subject: Add rotation for plantlike drawtype. X-Git-Tag: 0.4.11~343 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9dc8901e32fcf875c2b3bc52c2dec6b03a29bf37;p=oweals%2Fminetest.git Add rotation for plantlike drawtype. --- diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp index a00d9f307..f12dd11d5 100644 --- a/src/content_mapblock.cpp +++ b/src/content_mapblock.cpp @@ -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++)