bot: only stop for reloading in normal task

This commit is contained in:
jeefo 2023-04-12 00:26:06 +03:00
commit e9b181f438
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED

View file

@ -1599,7 +1599,7 @@ void Bot::overrideConditions () {
}
// special handling for reloading
if (m_reloadState != Reload::None && m_isReloading && !isInNarrowPlace ()) {
if (getCurrentTaskId () == Task::Normal && m_reloadState != Reload::None && m_isReloading && !isInNarrowPlace ()) {
if (m_seeEnemyTime + 2.5f < game.time () && (m_states & (Sense::SuspectEnemy | Sense::HearingEnemy))) {
m_moveSpeed = m_fearLevel > m_agressionLevel ? 0.0f : getShiftSpeed ();
m_navTimeset = game.time ();