fix: non closeable autopath menu.

This commit is contained in:
ds 2020-08-23 11:08:27 +03:00
commit 379feb8311
3 changed files with 21 additions and 14 deletions

View file

@ -1065,6 +1065,17 @@ void BotGraph::cachePoint (int index) {
ctrl.msg ("Node %d has been put into memory.", m_cacheNodeIndex);
}
void BotGraph::setAutoPathDistance (const float distance) {
m_autoPathDistance = distance;
if (cr::fzero (distance)) {
ctrl.msg ("Autopathing is now disabled.");
}
else {
ctrl.msg ("Autopath distance is set to %.2f.", distance);
}
}
void BotGraph::calculatePathRadius (int index) {
// calculate "wayzones" for the nearest node (meaning a dynamic distance area to vary node origin)