Fix texture glitches for plants with visual scale > 1.0 (jungle grass).
authorRealBadAngel <maciej.kasatkin@o2.pl>
Thu, 17 Jul 2014 12:10:23 +0000 (14:10 +0200)
committerRealBadAngel <maciej.kasatkin@o2.pl>
Thu, 17 Jul 2014 12:10:23 +0000 (14:10 +0200)
src/content_mapblock.cpp

index ffdb5ad08adf4b1efaf642ca65fd5b42b8e6a2db..32e80c2998bbca6b5ef57f7d8f9278f46ff48f1c 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(45);
+                                               vertices[i].Pos.rotateXZBy(46);
                                }
                                else if(j == 1)
                                {
                                        for(u16 i=0; i<4; i++)
-                                               vertices[i].Pos.rotateXZBy(-45);
+                                               vertices[i].Pos.rotateXZBy(-44);
                                }
 
                                for(u16 i=0; i<4; i++)