diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-04 10:20:14 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-04 10:20:14 +0100 |
commit | a2b1b6828818350ade1f3167631d2eb288c3a733 (patch) | |
tree | 1193568f2d24db16b042c21ad08095d4a14b748b /editor/tests/raycast-test.cpp | |
parent | 29f15472f31feec20fb01b0151192fd0c26f5ae9 (diff) |
a
Diffstat (limited to 'editor/tests/raycast-test.cpp')
-rw-r--r-- | editor/tests/raycast-test.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/editor/tests/raycast-test.cpp b/editor/tests/raycast-test.cpp index f74d3091..83b8f3e3 100644 --- a/editor/tests/raycast-test.cpp +++ b/editor/tests/raycast-test.cpp @@ -188,6 +188,7 @@ void do_raycasting(result_s& result, { if constexpr(EnableDiagnostics) fm_assert(diag != nullptr); + fm_assert(from.chunk3().z == to.chunk3().z); using Math::max; using Math::min; @@ -587,12 +588,6 @@ struct raycast_test : base_test fm_warn("raycast: wrong Z value"); return; } - if (pending.from == pending.to) - { - fm_warn("raycast: from == to"); - return; - } - do_raycasting<true>(result, &diag, a, pending.from, pending.to, pending.self); } } |