From 7d7189b02ee81abedfebf270a3306a25fc9ab4c5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 4 Feb 2024 05:11:44 +0100 Subject: a --- editor/tests/raycast-test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/tests/raycast-test.cpp b/editor/tests/raycast-test.cpp index d769a91f..1abffa72 100644 --- a/editor/tests/raycast-test.cpp +++ b/editor/tests/raycast-test.cpp @@ -548,8 +548,8 @@ struct raycast_test : base_test auto off = chunk_offsets[i][j]; auto pt0 = pt - Vector2i(size/2), pt1 = pt0 + Vector2i(size); auto pt0_ = pt0 - off, pt1_ = pt1 - off; - if (!within_chunk_bounds(pt0_, pt1_)) continue; auto [fmin, fmax] = Math::minmax(Vector2(pt0_), Vector2(pt1_)); + if (!within_chunk_bounds(pt0_, pt1_)) continue; auto ch_off = (center.chunk() - from.chunk() + Vector2i(i-1, j-1)) * chunk_size; //Debug{} << ch_off << off << Vector2i(center.chunk()) + Vector2i(i-1, j-1); origin = Vector2((Vector2i(from.local()) * tile_size) + Vector2i(from.offset()) - ch_off); -- cgit v1.2.3