fix: bots never rer-route their path in some situations

Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
This commit is contained in:
jeefo 2024-04-19 13:20:17 +03:00
commit 2968a0adff
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
2 changed files with 5 additions and 5 deletions

View file

@ -271,9 +271,9 @@ bool Bot::lookupEnemies () {
m_states |= Sense::SuspectEnemy;
// check if last enemy can be penetrated
const auto penetratePower = conf.findWeaponById (m_currentWeapon).penetratePower * 3;
const auto penetratePower = conf.findWeaponById (m_currentWeapon).penetratePower * 4;
if (isPenetrableObstacle3 (m_lastEnemyOrigin, penetratePower)) {
if (isPenetrableObstacle1 (m_lastEnemyOrigin, penetratePower)) {
m_aimFlags |= AimFlags::LastEnemy;
}
}