navigation: setPathdestination now takes a replace bool to preserve the goal

also killed a few now extraneous  clearfollow calls
This commit is contained in:
AzaezelX 2025-04-17 17:51:31 -05:00
parent c72c3068f8
commit f84bf058c9
3 changed files with 6 additions and 9 deletions

View file

@ -418,7 +418,7 @@ void GuiNavEditorCtrl::on3DMouseDown(const Gui3DMouseEvent & event)
if (po->getAIController())
{
if (po->getAIController()->mControllerData)
po->getAIController()->getNav()->setPathDestination(ri.point);
po->getAIController()->getNav()->setPathDestination(ri.point,true);
}
}
}