mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Allow full circle rotation with 2degs step for plantlike drawtype.
This commit is contained in:
parent
9dc8901e32
commit
3bf05f020c
1 changed files with 2 additions and 2 deletions
|
@ -1119,12 +1119,12 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
|
||||||
if(j == 0)
|
if(j == 0)
|
||||||
{
|
{
|
||||||
for(u16 i=0; i<4; i++)
|
for(u16 i=0; i<4; i++)
|
||||||
vertices[i].Pos.rotateXZBy(46 + n.param2);
|
vertices[i].Pos.rotateXZBy(46 + n.param2 * 2);
|
||||||
}
|
}
|
||||||
else if(j == 1)
|
else if(j == 1)
|
||||||
{
|
{
|
||||||
for(u16 i=0; i<4; i++)
|
for(u16 i=0; i<4; i++)
|
||||||
vertices[i].Pos.rotateXZBy(-44 + n.param2);
|
vertices[i].Pos.rotateXZBy(-44 + n.param2 * 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(u16 i=0; i<4; i++)
|
for(u16 i=0; i<4; i++)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue