diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-05 15:16:55 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-10-05 15:16:55 +0200 |
commit | 8e2bca8b773a6ab983183b16f02c1a5c2d9d0621 (patch) | |
tree | ecefa1d1d5d3d470ed6d86de95bc11c59f38f9b9 | |
parent | d311faff9dfc7b2465e90b87f6e65d643d720e49 (diff) |
zz
-rw-r--r-- | src/path-search.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/path-search.cpp b/src/path-search.cpp index 83804d70..4f6efc3a 100644 --- a/src/path-search.cpp +++ b/src/path-search.cpp @@ -312,13 +312,11 @@ void path_search::fill_cache_(world& w, chunk_coords_ coord, Vector2ub own_size_ constexpr auto stride = TILE_MAX_DIM*(size_t)div; for (auto j = 0uz; j < TILE_MAX_DIM; j++) - { for (auto i = 0uz; i < TILE_MAX_DIM; i++) { const auto pos_ = tile_start + Vector2(i, j) * TILE_SIZE2; for (auto ky = 0uz; ky < div; ky++) - { for (auto kx = 0uz; kx < div; kx++) { auto pos = pos_ + part_size*Vector2(kx, ky); @@ -332,9 +330,7 @@ void path_search::fill_cache_(world& w, chunk_coords_ coord, Vector2ub own_size_ bits.can_go_north[index] = b_N; bits.can_go_west[index] = b_W; } - } } - } } void path_search::fill_cache(world& w, Vector2i cmin, Vector2i cmax, int8_t z, |