aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/content_mapblock.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/content_mapblock.cpp b/src/content_mapblock.cpp
index 165073e52..b84b69629 100644
--- a/src/content_mapblock.cpp
+++ b/src/content_mapblock.cpp
@@ -1188,8 +1188,7 @@ void mapblock_mesh_generate_special(MeshMakeData *data,
for (int i = 0; i < 4; i++)
{
vertices[i].Pos *= f.visual_scale;
- if (f.visual_scale < 1)
- vertices[i].Pos.Y -= BS/2 * (1 - f.visual_scale);
+ vertices[i].Pos.Y += BS/2 * (f.visual_scale - 1);
vertices[i].Pos += intToFloat(p, BS);
}