fix: too shaky predilected aiming

This commit is contained in:
jeefo 2024-08-29 23:54:06 +03:00
commit 2a967a8dff
No known key found for this signature in database
GPG key ID: D696786B81B667C8

View file

@ -506,7 +506,7 @@ void Bot::setAimDirection () {
auto predictNode = m_lastPredictIndex;
auto isPredictedIndexApplicable = [&] () -> bool {
if (!vistab.visible (m_currentNodeIndex, predictNode)) {
if (!vistab.visible (m_currentNodeIndex, predictNode) || !vistab.visible (m_previousNodes[0], predictNode)) {
predictNode = kInvalidNodeIndex;
pathLength = kInfiniteDistanceLong;
}