summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-02-04 00:26:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-02-04 00:26:27 +0100
commite9cd6aa7efcab77e7274c9a4c2c946a36548ec24 (patch)
treec78a8478db4854436e80f02054a4578c1a06fa26
parenteee081259f9262d000a1985443bfc5744d9fa2c5 (diff)
w
-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 c2300138..a4b3ee8a 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] = (unsigned)Math::ceil(short_len / nsteps)+2u;
+ size_[short_axis] = Math::clamp((unsigned)Math::ceil(short_len / nsteps)+2u, 1u, tile_size<unsigned>.x());
result = {
.from = from,