From 1493cc1a9bb9355d8ebfc2f2f0320c8f3ca0594c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 10 Jan 2024 05:09:41 +0100 Subject: aa --- editor/wall-editor.cpp | 1 - src/chunk-walls.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/editor/wall-editor.cpp b/editor/wall-editor.cpp index c7052c69..f3e0b13f 100644 --- a/editor/wall-editor.cpp +++ b/editor/wall-editor.cpp @@ -58,7 +58,6 @@ void wall_editor::load_atlases() wall_editor::wall_editor() { load_atlases(); - _selected_atlas = loader.wall_atlas("concrete1"_s, false); // todo } StringView wall_editor::name() const { return "wall"_s; } 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) -- cgit v1.2.3