From 459e94900d06ea79b7fb215880e336a8cba156ca Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 7 Dec 2023 09:27:52 +0100 Subject: wipshit --- src/chunk.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/chunk.cpp') diff --git a/src/chunk.cpp b/src/chunk.cpp index 0b7c05b0..ca930777 100644 --- a/src/chunk.cpp +++ b/src/chunk.cpp @@ -26,7 +26,7 @@ bool chunk::empty(bool force) const noexcept if (!force && !_maybe_empty) return false; for (auto i = 0uz; i < TILE_COUNT; i++) - if (!_objects.empty() || _ground && _ground->_ground_atlases[i] || _walls && (_walls->_wall_atlases[i*2+0] || _walls->_wall_atlases[i*2+1])) + if (!_objects.empty() || _ground && _ground->_ground_atlases[i] || _walls && _walls->empty()) return _maybe_empty = false; if (!_objects.empty()) return false; @@ -34,7 +34,6 @@ bool chunk::empty(bool force) const noexcept } tile_atlas* chunk::ground_atlas_at(size_t i) const noexcept { return _ground ? _ground->_ground_atlases[i].get() : nullptr; } -tile_atlas* chunk::wall_atlas_at(size_t i) const noexcept { return _walls ? _walls->_wall_atlases[i].get() : nullptr; } tile_ref chunk::operator[](size_t idx) noexcept { return { *this, uint8_t(idx) }; } tile_proto chunk::operator[](size_t idx) const noexcept { return tile_proto(tile_ref { *const_cast(this), uint8_t(idx) }); } -- cgit v1.2.3