Skip to content

Commit 7760948

Browse files
committedFeb 10, 2017
Revert "Plantlike: Fix visual_scale being applied squared (#5115)"
This reverts commit 953cbb3.
1 parent 7bd3e2b commit 7760948

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

Diff for: ‎src/content_mapblock.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1602,6 +1602,8 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
16021602
}
16031603

16041604
for (int i = 0; i < 4; i++) {
1605+
vertices[i].Pos *= f.visual_scale;
1606+
vertices[i].Pos.Y += BS/2 * (f.visual_scale - 1);
16051607
if (data->m_smooth_lighting)
16061608
vertices[i].Color = blendLight(frame, vertices[i].Pos, tile.color);
16071609
vertices[i].Pos += intToFloat(p, BS);

0 commit comments

Comments
 (0)
Please sign in to comment.