From 2752606d3014e29eae4a522917b805d86b505400 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 23 Mar 2024 12:04:56 +0100 Subject: w --- editor/tests/walk.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor/tests') diff --git a/editor/tests/walk.cpp b/editor/tests/walk.cpp index 938c36d1..ea764a9e 100644 --- a/editor/tests/walk.cpp +++ b/editor/tests/walk.cpp @@ -216,7 +216,7 @@ void pf_test::update_pre(app& a, const Ns& dt) fm_assert(step.count > 0); const auto new_r = dir_from_step(step); using Frac = decltype(critter::offset_frac)::Type; - constexpr auto frac = float{limits::max}; + constexpr auto frac = (float{limits::max}+1)/2; constexpr auto inv_frac = 1 / frac; const auto mag = step_magnitude(step.direction); const auto vec = Vector2(step.direction) * mag; @@ -240,7 +240,7 @@ void pf_test::update_pre(app& a, const Ns& dt) } } else - C.offset_frac = Math::Vector2(Math::min({1.f,1.f}, Math::abs(offset_)) * frac); + C.offset_frac = Math::Vector2(Math::min({2.f,2.f}, Math::abs(offset_)) * frac); } if (!ok) [[unlikely]] -- cgit v1.2.3