blob: 92817765516101ce4419702afd50fa5202cd79de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "chunk.hpp"
namespace floormat {
bool chunk::empty(bool force) const noexcept
{
if (!force && !_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;
}
} // namespace floormat
|