fix: bot: some static-analyzer warnings fixed

This commit is contained in:
jeefo 2023-06-07 23:31:03 +03:00
commit 64aa02955c
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
3 changed files with 2 additions and 5 deletions

View file

@ -1880,7 +1880,7 @@ void Bot::checkGrenadesThrow () {
};
// check if throwing a grenade is a good thing to do...
if (preventibleTasks || isInNarrowPlace () || cv_ignore_enemies.bool_ () || m_isUsingGrenade || m_grenadeRequested || m_isReloading || (isKnifeMode () && !bots.isBombPlanted ()) || (m_grenadeRequested || m_grenadeCheckTime >= game.time ())) {
if (preventibleTasks || isInNarrowPlace () || cv_ignore_enemies.bool_ () || m_isUsingGrenade || m_grenadeRequested || m_isReloading || (isKnifeMode () && !bots.isBombPlanted ()) || m_grenadeCheckTime >= game.time ()) {
clearThrowStates (m_states);
return;
}