Check for reload when hiding.

This commit is contained in:
jeefo 2019-06-02 12:19:41 +03:00
commit 2eef246e97
2 changed files with 5 additions and 1 deletions

View file

@ -3728,6 +3728,10 @@ void Bot::hide_ (void) {
pev->button |= m_campButtons;
m_navTimeset = engine.timebase ();
if (!m_isReloading) {
checkReload ();
}
// stop camping if time over or gets hurt by something else than bullets
if (task ()->time < engine.timebase () || m_lastDamageType > 0) {
completeTask ();