diff options
author | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-07-22 00:32:03 +0200 |
---|---|---|
committer | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-07-22 00:32:03 +0200 |
commit | 9dc8901e32fcf875c2b3bc52c2dec6b03a29bf37 (patch) | |
tree | 084d94ec3608633ced4638ae493d27f3a97a5bf5 /src | |
parent | 70074800a207974a0c1383275186cefe6955f297 (diff) | |
download | minetest-9dc8901e32fcf875c2b3bc52c2dec6b03a29bf37.tar.gz minetest-9dc8901e32fcf875c2b3bc52c2dec6b03a29bf37.tar.bz2 minetest-9dc8901e32fcf875c2b3bc52c2dec6b03a29bf37.zip |
Add rotation for plantlike drawtype.
Diffstat (limited to 'src')
-rw-r--r-- | src/content_mapblock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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++) |