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