Revert "Plantlike: Fix visual_scale being applied squared (#5115)"

This reverts commit 953cbb3b15.
This commit is contained in:
Craig Robbins 2017-02-10 22:21:49 +10:00
parent 7bd3e2bceb
commit 7760948b7c
1 changed files with 2 additions and 0 deletions

View File

@ -1602,6 +1602,8 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
} }
for (int i = 0; i < 4; i++) { for (int i = 0; i < 4; i++) {
vertices[i].Pos *= f.visual_scale;
vertices[i].Pos.Y += BS/2 * (f.visual_scale - 1);
if (data->m_smooth_lighting) if (data->m_smooth_lighting)
vertices[i].Color = blendLight(frame, vertices[i].Pos, tile.color); vertices[i].Color = blendLight(frame, vertices[i].Pos, tile.color);
vertices[i].Pos += intToFloat(p, BS); vertices[i].Pos += intToFloat(p, BS);