summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-09-09 03:11:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-09-20 16:08:47 +0200
commit8c276bb216a5ec870c8f30a3b1fa22dfee7b1ce3 (patch)
tree3e32797d3bb084010269652b64fdc100d06ed730
parent093f90ce1dfc7f5b5369357eecb239ac8db81eea (diff)
a
-rw-r--r--src/chunk-walls.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp
index 35998c63..95ac7a86 100644
--- a/src/chunk-walls.cpp
+++ b/src/chunk-walls.cpp
@@ -213,7 +213,6 @@ void do_wall_part(const Group& group, wall_atlas& A, chunk& c, chunk::wall_stuff
const auto center = Vector3(pos) * TILE_SIZE;
const auto& dir = A.calc_direction(D);
const auto Depth = A.info().depth;
- bool side_ok = true;
if constexpr(G == Group_::side) [[unlikely]]
{
@@ -228,21 +227,12 @@ void do_wall_part(const Group& group, wall_atlas& A, chunk& c, chunk::wall_stuff
if (auto t = c.at_offset(pos, {0, -1}); t && t->wall_west_atlas())
corner_ok = true;
}
- if (side_ok)
- if (auto t = c.at_offset(pos, {1, -1}); t && t->wall_west_atlas())
- side_ok = false;
- if (side_ok)
- if (auto t = c.at_offset(pos, {1, -1}); t && t->wall_west_atlas())
- side_ok = false;
}
else
{
if (auto t = c.at_offset(pos, {0, -1}); !(t && t->wall_west_atlas()))
if (auto t = c.at_offset(pos, {-1, 0}); t && t->wall_north_atlas())
corner_ok = true;
- if (side_ok)
- if (auto t = c.at_offset(pos, {-1, 1}); t && t->wall_north_atlas())
- side_ok = false;
}
if (pillar_ok) [[unlikely]]
@@ -309,7 +299,6 @@ void do_wall_part(const Group& group, wall_atlas& A, chunk& c, chunk::wall_stuff
}
}
- if (G == Group_::side || side_ok)
{
const auto frames = A.frames(group);
const auto frame = variant_from_frame(frames, coord, variant_2, IsWest);