aim: remove redundant code

This commit is contained in:
jeefo 2023-05-31 10:34:27 +03:00
commit 5d5c3a5b23
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED

View file

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