summaryrefslogtreecommitdiffhomepage
path: root/src/chunk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chunk.cpp')
-rw-r--r--src/chunk.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/chunk.cpp b/src/chunk.cpp
index 9eca0138..59e05d73 100644
--- a/src/chunk.cpp
+++ b/src/chunk.cpp
@@ -7,12 +7,14 @@ bool chunk::empty(bool force) const noexcept
if (!force && !_maybe_empty)
return false;
- for (const tile& x : _tiles)
- if (x.ground || x.wall_north || x.wall_west)
+ for (std::size_t i = 0; i < TILE_COUNT; i++)
+ {
+ if (_ground_atlases[i] || _wall_north_atlases[i] || _wall_west_atlases[i])
{
_maybe_empty = false;
return false;
}
+ }
return true;
}