fix: nav: overlap between occupied node check and player avoid distance

fix: bot: debug overlay flickering in some situations
This commit is contained in:
jeefo 2023-07-06 14:00:48 +03:00
commit 7a7a9c3146
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
5 changed files with 14 additions and 10 deletions

View file

@ -252,7 +252,7 @@ AStarResult AStarAlgo::find (int botTeam, int srcIndex, int destIndex, NodeAdder
m_routeQue.clear ();
m_routeQue.emplace (srcIndex, srcRoute->g);
bool postSmoothPath = cv_path_astar_post_smooth.bool_ () && vistab.isReady ();
const bool postSmoothPath = cv_path_astar_post_smooth.bool_ () && vistab.isReady ();
// always clear constructed path
m_constructedPath.clear ();