From dd0587d6a85625859bd2706db171ae891d8f3c79 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Mar 2024 10:43:37 +0100 Subject: src/critter, editor/tests: fix subpixel accumulation --- editor/tests/pathfinding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/tests') diff --git a/editor/tests/pathfinding.cpp b/editor/tests/pathfinding.cpp index c999d22e..82009fdc 100644 --- a/editor/tests/pathfinding.cpp +++ b/editor/tests/pathfinding.cpp @@ -257,7 +257,7 @@ void pf_test::update_pre(app& a, const Ns& dt) } } else - C.offset_frac = Vector2us(Math::abs(Math::min({1.f,1.f}, offset_)) * frac); + C.offset_frac = Vector2us(Math::min({1.f,1.f}, Math::abs(offset_)) * frac); } if (!ok) [[unlikely]] -- cgit v1.2.3