fix: too shaky predilected aiming
This commit is contained in:
parent
e8992f96b7
commit
2a967a8dff
1 changed files with 1 additions and 1 deletions
|
|
@ -506,7 +506,7 @@ void Bot::setAimDirection () {
|
||||||
auto predictNode = m_lastPredictIndex;
|
auto predictNode = m_lastPredictIndex;
|
||||||
|
|
||||||
auto isPredictedIndexApplicable = [&] () -> bool {
|
auto isPredictedIndexApplicable = [&] () -> bool {
|
||||||
if (!vistab.visible (m_currentNodeIndex, predictNode)) {
|
if (!vistab.visible (m_currentNodeIndex, predictNode) || !vistab.visible (m_previousNodes[0], predictNode)) {
|
||||||
predictNode = kInvalidNodeIndex;
|
predictNode = kInvalidNodeIndex;
|
||||||
pathLength = kInfiniteDistanceLong;
|
pathLength = kInfiniteDistanceLong;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue