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:
parent
ffa882a295
commit
2968a0adff
2 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue