diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-23 08:35:10 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-23 08:35:10 +0100 |
commit | c398752ab842050c5ea89e986a92fd3b0a48a419 (patch) | |
tree | 89c9bc79ed20cde1b01d239d8012d3399939dd50 | |
parent | 9574e97c4b9b5d607cd95ab81e7d5e8d10487702 (diff) |
a
-rw-r--r-- | editor/tests/pathfinding.cpp | 8 |
1 files 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()) { |