diff options
Diffstat (limited to 'src/chunk-walls.cpp')
| -rw-r--r-- | src/chunk-walls.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
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; } |
