summaryrefslogtreecommitdiffhomepage
path: root/editor/tests/raycast-test.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-04 08:56:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-04 08:56:06 +0100
commit39fe8a311e2fa374e0a4966a45cbf09683213002 (patch)
tree487924d6a61cf67529977c3c3934faeb045fee40 /editor/tests/raycast-test.cpp
parente406f2cf6dcb5563364d0ec5241b946067243f51 (diff)
a
Diffstat (limited to 'editor/tests/raycast-test.cpp')
-rw-r--r--editor/tests/raycast-test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/tests/raycast-test.cpp b/editor/tests/raycast-test.cpp
index 8df06805..b6c519d7 100644
--- a/editor/tests/raycast-test.cpp
+++ b/editor/tests/raycast-test.cpp
@@ -570,7 +570,7 @@ struct raycast_test : base_test
auto pt0 = pt - Vector2i(size/2), pt1 = pt0 + Vector2i(size);
auto pt0_ = pt0 - off, pt1_ = pt1 - off;
auto [fmin, fmax] = Math::minmax(Vector2(pt0_), Vector2(pt1_));
- //if (!within_chunk_bounds(fmin, fmax)) continue;
+ if (!within_chunk_bounds(fmin, fmax)) continue;
auto ch_off = (center.chunk() - from.chunk() + Vector2i(i-1, j-1)) * chunk_size<int>;
origin = Vector2((Vector2i(from.local()) * tile_size<int>) + Vector2i(from.offset()) - ch_off);
//Debug{} << "search" << fmin << fmax << Vector3i(c->coord());