summaryrefslogtreecommitdiffhomepage
path: root/src/path-search.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-05 14:44:48 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-05 14:44:58 +0200
commit64d881a31e84f1008f51756aafb0a1eb095e1520 (patch)
treeed15c08c1281a3bb1352c84a94ef602a86b1ec8b /src/path-search.cpp
parentf95753fff7238ff54e493797163c388330b02e32 (diff)
kill assert in a loop
Diffstat (limited to 'src/path-search.cpp')
-rw-r--r--src/path-search.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/path-search.cpp b/src/path-search.cpp
index dfcf0c3c..83804d70 100644
--- a/src/path-search.cpp
+++ b/src/path-search.cpp
@@ -305,8 +305,6 @@ void path_search::fill_cache_(world& w, chunk_coords_ coord, Vector2ub own_size_
const auto min_N = Vector2(min_N_), max_N = Vector2(max_N_),
min_W = Vector2(min_W_), max_W = Vector2(max_W_);
- enum : unsigned { N, E, S, W };
-
constexpr auto tile_start = TILE_SIZE2/-2;
constexpr auto part_size = Vector2(iTILE_SIZE2/Vector2i(div));
@@ -330,7 +328,7 @@ void path_search::fill_cache_(world& w, chunk_coords_ coord, Vector2ub own_size_
b_W = is_passable_(c, nb, bb_W.min, bb_W.max, own_id, p);
auto jj = j * div + ky, ii = i * div + kx;
auto index = jj * stride + ii;
- fm_debug_assert(index < bits.can_go_north.size());
+ //fm_debug_assert(index < bits.can_go_north.size());
bits.can_go_north[index] = b_N;
bits.can_go_west[index] = b_W;
}