summaryrefslogtreecommitdiffhomepage
path: root/editor/tests/raycast-test.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-04 00:33:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-04 00:33:25 +0100
commit389ef88eaeb5d334e9ac63173312f830cbb45882 (patch)
treee86950e037c8d23c186698a43f80e3ac44f5b47f /editor/tests/raycast-test.cpp
parente9cd6aa7efcab77e7274c9a4c2c946a36548ec24 (diff)
w
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 a4b3ee8a..444e750c 100644
--- a/editor/tests/raycast-test.cpp
+++ b/editor/tests/raycast-test.cpp
@@ -408,7 +408,7 @@ struct raycast_test : base_test
auto size_ = Vector2ui{NoInit};
size_[long_axis] = Math::max(tile_size<unsigned>.x(), (unsigned)Math::ceil(long_len / nsteps));
- size_[short_axis] = Math::clamp((unsigned)Math::ceil(short_len / nsteps)+2u, 1u, tile_size<unsigned>.x());
+ size_[short_axis] = Math::min(tile_size<unsigned>.x(), (unsigned)Math::ceil(short_len * 1.5 / nsteps)+2u);
result = {
.from = from,