diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-04 00:26:27 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-04 00:26:27 +0100 |
commit | e9cd6aa7efcab77e7274c9a4c2c946a36548ec24 (patch) | |
tree | c78a8478db4854436e80f02054a4578c1a06fa26 | |
parent | eee081259f9262d000a1985443bfc5744d9fa2c5 (diff) |
w
-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 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, |