diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-22 01:00:52 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-22 04:17:20 +0100 |
commit | 79357950ac0665dc01f22ebfa9a4efce48bb7682 (patch) | |
tree | 04a370355a36e23cca64600227a8ef4d1311d260 /editor/tests | |
parent | 510950aa138fa34ed992ef3ea89fadf38d578da3 (diff) |
w
Diffstat (limited to 'editor/tests')
-rw-r--r-- | editor/tests/pathfinding.cpp | 8 |
1 files 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]] |