diff options
Diffstat (limited to 'src/chunk.cpp')
| -rw-r--r-- | src/chunk.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/chunk.cpp b/src/chunk.cpp index 95904d81..d8c2d011 100644 --- a/src/chunk.cpp +++ b/src/chunk.cpp @@ -4,9 +4,15 @@ namespace floormat { bool chunk::empty() const { + if (!_maybe_empty) + return false; + for (const tile& x : _tiles) if (x.ground_image || x.wall_north || x.wall_west) + { + _maybe_empty = false; return false; + } return true; } |
