fix: non closeable autopath menu.
This commit is contained in:
parent
73ef635f09
commit
379feb8311
3 changed files with 21 additions and 14 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue