diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-05 15:19:31 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-05 15:20:56 +0200 |
commit | c4fd789b0aa70f58254d60799253139153ac3a19 (patch) | |
tree | 5db87fc5ab7d7e8c134838470a300362e6a3e07f /src | |
parent | 8e2bca8b773a6ab983183b16f02c1a5c2d9d0621 (diff) |
a
Diffstat (limited to 'src')
-rw-r--r-- | src/path-search.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/path-search.cpp b/src/path-search.cpp index 4f6efc3a..1bd20083 100644 --- a/src/path-search.cpp +++ b/src/path-search.cpp @@ -241,6 +241,8 @@ auto path_search::get_walkable_neighbor_tiles(world& w, global_coords coord, Vec { auto ch = chunk_coords_{ coord.chunk(), coord.z() }; auto pos = Vector2i(coord.local()); + constexpr auto min_size = Vector2ub(iTILE_SIZE2/4); + size = Math::max(size, min_size); #if 0 if (auto [min, max] = make_neighbor_tile_bbox(pos, size, rotation_COUNT); |