aim: fix: check last enemy not current enemy in prediction
This commit is contained in:
parent
9ff97c1997
commit
fcda101224
1 changed files with 1 additions and 1 deletions
|
|
@ -1562,7 +1562,7 @@ void Bot::syncUpdatePredictedIndex () {
|
||||||
auto currentNodeIndex = m_currentNodeIndex;
|
auto currentNodeIndex = m_currentNodeIndex;
|
||||||
auto botOrigin = pev->origin;
|
auto botOrigin = pev->origin;
|
||||||
|
|
||||||
if (lastEnemyOrigin.empty () || !vistab.isReady () || !util.isAlive (m_enemy)) {
|
if (lastEnemyOrigin.empty () || !vistab.isReady () || !util.isAlive (m_lastEnemy)) {
|
||||||
wipePredict ();
|
wipePredict ();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue