From c398752ab842050c5ea89e986a92fd3b0a48a419 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 23 Mar 2024 08:35:10 +0100 Subject: [PATCH] a --- editor/tests/pathfinding.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/tests/pathfinding.cpp b/editor/tests/pathfinding.cpp index 042edf01..31dc6055 100644 --- a/editor/tests/pathfinding.cpp +++ b/editor/tests/pathfinding.cpp @@ -200,16 +200,16 @@ void pf_test::update_pre(app& a, const Ns& dt) if (from == current.dest) { current.has_value = false; - Debug{} << "done!" << from; + //Debug{} << "done!" << from; C.set_keys(false, false, false, false); return; } const auto step = next_step(from, current.dest); - //Debug{} << "step" << step.direction << step.count << "frames" << i << "/" << nframes; + //Debug{} << "step" << step.direction << step.count << "|" << C.position(); C.set_keys_auto(); if (step.direction == Vector2b{}) { - Debug{} << "no dir break"; + //Debug{} << "no dir break"; ok = false; break; } @@ -223,7 +223,7 @@ void pf_test::update_pre(app& a, const Ns& dt) const auto sign_vec = Math::sign(vec); auto offset_ = vec + Vector2(C.offset_frac) * sign_vec * inv_frac; auto off_i = Vector2i(offset_); - Debug{} << "vec" << vec << "mag" << mag << "off_i" << off_i << "offset_" << Vector2(C.offset_frac) * sign_vec * inv_frac; + //Debug{} << "vec" << vec << "mag" << mag << "off_i" << off_i << "offset_" << Vector2(C.offset_frac) * sign_vec * inv_frac; if (!off_i.isZero()) {