graph: do not mark too far facing nodes
.. so respect the max draw distance variable
This commit is contained in:
parent
d8ed0e565c
commit
fe85aecbda
1 changed files with 1 additions and 1 deletions
|
|
@ -1022,7 +1022,7 @@ int BotGraph::getFacingIndex () {
|
|||
auto angles = (to.angles () - m_editor->v.v_angle).clampAngles ();
|
||||
|
||||
// skip the nodes that are too far away from us, and we're not looking at them directly
|
||||
if (to.lengthSq () > cr::sqrf (500.0f) || cr::abs (angles.y) > result.second) {
|
||||
if (to.lengthSq () > cr::sqrf (cv_graph_draw_distance.as <float> ()) || cr::abs (angles.y) > result.second) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue