From cb2693700af90ebbd47d2026d69580b307008393 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 24 Jul 2024 08:26:14 +0200 Subject: now rename at_offset_() to at_offset() --- src/chunk-walls.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/chunk-walls.cpp') diff --git a/src/chunk-walls.cpp b/src/chunk-walls.cpp index 665390da..7d744ff9 100644 --- a/src/chunk-walls.cpp +++ b/src/chunk-walls.cpp @@ -186,27 +186,27 @@ GL::Mesh chunk::make_wall_mesh() if (!is_west) { - if (auto t = at_offset_(pos, {-1, 0}); !(t && t->wall_north_atlas())) + if (auto t = at_offset(pos, {-1, 0}); !(t && t->wall_north_atlas())) { if (_walls->atlases[k+1]) // west on same tile pillar_ok = true; - if (auto t = at_offset_(pos, {0, -1}); t && t->wall_west_atlas()) + if (auto t = at_offset(pos, {0, -1}); t && t->wall_west_atlas()) corner_ok = true; } if (side_ok) - if (auto t = at_offset_(pos, {1, -1}); t && t->wall_west_atlas()) + if (auto t = at_offset(pos, {1, -1}); t && t->wall_west_atlas()) side_ok = false; if (side_ok) - if (auto t = at_offset_(pos, {1, -1}); t && t->wall_west_atlas()) + if (auto t = at_offset(pos, {1, -1}); t && t->wall_west_atlas()) side_ok = false; } else { - if (auto t = at_offset_(pos, {0, -1}); !(t && t->wall_west_atlas())) - if (auto t = at_offset_(pos, {-1, 0}); t && t->wall_north_atlas()) + if (auto t = at_offset(pos, {0, -1}); !(t && t->wall_west_atlas())) + if (auto t = at_offset(pos, {-1, 0}); t && t->wall_north_atlas()) corner_ok = true; if (side_ok) - if (auto t = at_offset_(pos, {-1, 1}); t && t->wall_north_atlas()) + if (auto t = at_offset(pos, {-1, 1}); t && t->wall_north_atlas()) side_ok = false; } -- cgit v1.2.3