fix: nav: correct player feet in calculated jump direction

fix: planner: correct radius checking in astar path smoothing
This commit is contained in:
jeefo 2023-06-07 23:22:30 +03:00
commit c3f9c02ec5
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
2 changed files with 2 additions and 2 deletions

View file

@ -176,7 +176,7 @@ bool AStarAlgo::cantSkipNode (const int a, const int b) {
const auto &ag = graph[a];
const auto &bg = graph[b];
const bool hasZeroRadius = cr::fzero (ag.radius) || cr::fzero (ag.radius);
const bool hasZeroRadius = cr::fzero (ag.radius) || cr::fzero (bg.radius);
if (hasZeroRadius) {
return true;