From 79357950ac0665dc01f22ebfa9a4efce48bb7682 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Mar 2024 01:00:52 +0100 Subject: w --- editor/tests/pathfinding.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/editor/tests/pathfinding.cpp b/editor/tests/pathfinding.cpp index b99df6ca..928d7496 100644 --- a/editor/tests/pathfinding.cpp +++ b/editor/tests/pathfinding.cpp @@ -83,11 +83,9 @@ struct pf_test final : base_test constexpr step_s next_step(point from, point to) { - fm_debug_assert(from.chunk3().z != to.chunk3().z); - + fm_debug_assert(from.chunk3().z == to.chunk3().z); const auto vec = to - from; fm_debug_assert(!vec.isZero()); - return next_stepʹ(vec); } @@ -264,9 +262,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); } if (!ok) [[unlikely]] -- cgit v1.2.3