summaryrefslogtreecommitdiffhomepage
path: root/editor/tests
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-22 10:43:37 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-22 10:44:41 +0100
commitdd0587d6a85625859bd2706db171ae891d8f3c79 (patch)
tree2b07ae100d8705f29a91a8526f0bdaa61c90a2dc /editor/tests
parent83b406546a3129c6091f8a4cbcadd6d829298c21 (diff)
src/critter, editor/tests: fix subpixel accumulation
Diffstat (limited to 'editor/tests')
-rw-r--r--editor/tests/pathfinding.cpp2
1 files changed, 1 insertions, 1 deletions
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]]