redo: aim: remove redundant code

This commit is contained in:
jeefo 2023-06-04 22:14:30 +03:00
commit fb672e70d4
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED

View file

@ -305,11 +305,6 @@ bool Bot::lookupEnemies () {
continue;
}
// extra skill player can see thru smoke... if beeing attacked
if ((player->v.button & (IN_ATTACK | IN_ATTACK2)) && m_viewDistance < m_maxViewDistance && m_difficulty == Difficulty::Expert) {
nearestDistance = cr::sqrf (m_maxViewDistance);
}
// see if bot can see the player...
if (seesEnemy (player)) {
if (isEnemyBehindShield (player)) {