diff options
Diffstat (limited to 'editor')
-rw-r--r-- | editor/tests/raycast-test.cpp | 2 |
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, |