aim: fail prediction more correctly

This commit is contained in:
jeefo 2023-05-07 13:21:49 +03:00
commit 0072bbb413
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
2 changed files with 3 additions and 3 deletions

View file

@ -1435,7 +1435,6 @@ void Bot::clearSearchNodes () {
int Bot::findAimingNode (const Vector &to, int &pathLength) {
// return the most distant node which is seen from the bot to the target and is within count
ensureCurrentNodeIndex ();
int destIndex = graph.getNearest (to);