aim: fix: check last enemy not current enemy in prediction

This commit is contained in:
jeefo 2023-05-25 00:07:03 +03:00
commit fcda101224
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED

View file

@ -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;
} }