summaryrefslogtreecommitdiffhomepage
path: root/src/chunk-walls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chunk-walls.cpp')
-rw-r--r--src/chunk-walls.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp
index 1bc0c376..77ab2673 100644
--- a/src/chunk-walls.cpp
+++ b/src/chunk-walls.cpp
@@ -37,10 +37,10 @@ template<> std::array<Vector3, 4> chunk::make_wall_vertex_data<Group_::corner_L,
{
constexpr float x_offset = (float)((unsigned)X)/2u;
return {{
- { X, -Y, Z },
- { X, -Y, 0 },
- { x_offset + -X, -Y, Z },
- { x_offset + -X, -Y, 0 },
+ { -X + x_offset, -Y, Z },
+ { -X + x_offset, -Y, 0 },
+ { -X, -Y, Z },
+ { -X, -Y, 0 },
}};
}
@@ -106,7 +106,7 @@ template<> std::array<Vector3, 4> chunk::make_wall_vertex_data<Group_::side, fal
// side west
template<> std::array<Vector3, 4> chunk::make_wall_vertex_data<Group_::side, true>(float depth)
{
- auto right = Vector2{ X, Y };
+ auto right = Vector2{ -X, Y };
auto left = Vector2{ right.x() - depth, right.y() };
return {{
{ right.x(), right.y(), Z },