Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Mar 23, 2024
1 parent 9574e97 commit c398752
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions editor/tests/pathfinding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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())
{
Expand Down

0 comments on commit c398752

Please sign in to comment.