include in previous if

This commit is contained in:
kingofings
2025-07-05 14:23:21 +02:00
committed by EricS-Valve
parent 5d36df802a
commit ec3adca9e3

View File

@@ -2088,13 +2088,10 @@ void CTFWeaponBase::IncrementAmmo( void )
}
else if ( !CheckReloadMisfire() )
{
if ( pPlayer && pPlayer->GetAmmoCount( m_iPrimaryAmmoType ) > 0 )
if ( pPlayer && pPlayer->GetAmmoCount( m_iPrimaryAmmoType ) > 0 && m_iClip1 < GetMaxClip1() )
{
if ( m_iClip1 < GetMaxClip1() )
{
m_iClip1++;
pPlayer->RemoveAmmo( 1, m_iPrimaryAmmoType );
}
m_iClip1++;
pPlayer->RemoveAmmo( 1, m_iPrimaryAmmoType );
}
}
}