summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-10 05:09:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-10 05:09:41 +0100
commit1493cc1a9bb9355d8ebfc2f2f0320c8f3ca0594c (patch)
tree5e0af3adb535e7d024a7a4cf3d0b85eb3f46ebea /src
parente53afc53ae4344235736af2956630d1d4f95fdf0 (diff)
aa
Diffstat (limited to 'src')
-rw-r--r--src/chunk-walls.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp
index 8133f798..9f9901a1 100644
--- a/src/chunk-walls.cpp
+++ b/src/chunk-walls.cpp
@@ -170,7 +170,7 @@ GL::Mesh chunk::make_wall_mesh()
const auto pos = local_coords{k / 2u};
const auto center = Vector3(pos) * TILE_SIZE;
const auto& dir = atlas->calc_direction(D);
- const auto vpos = (uint8_t)Vector2ui(global_coords{_coord, pos}.raw()).sum();
+ const auto vpos = (uint8_t)(Vector2ui(global_coords{_coord, pos}.raw()).sum() + is_west);
const auto Depth = atlas->info().depth;
for (auto [_, member, G] : Wall::Direction::groups_for_draw)