mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2026-01-25 00:32:37 +01:00
include in previous if
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user