mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-05-18 01:28:02 +03:00
Update tf_item_powerup_bottle.cpp
This commit is contained in:
parent
6257ffe46f
commit
43d8767c30
@ -287,7 +287,8 @@ void CTFPowerupBottle::ReapplyProvision( void )
|
|||||||
if ( TFGameRules() && TFGameRules()->IsMannVsMachineMode() )
|
if ( TFGameRules() && TFGameRules()->IsMannVsMachineMode() )
|
||||||
{
|
{
|
||||||
if ( ( pWeapon->UsesPrimaryAmmo() && !pWeapon->HasPrimaryAmmo() ) ||
|
if ( ( pWeapon->UsesPrimaryAmmo() && !pWeapon->HasPrimaryAmmo() ) ||
|
||||||
( pWeapon->UsesSecondaryAmmo() && !pWeapon->HasSecondaryAmmo() ) )
|
( pWeapon->UsesSecondaryAmmo() && !pWeapon->HasSecondaryAmmo() ) ||
|
||||||
|
( pWeapon->IsEnergyWeapon() && !pWeapon->Energy_HasEnergy() ) )
|
||||||
{
|
{
|
||||||
pTFPlayer->AwardAchievement( ACHIEVEMENT_TF_MVM_USE_AMMO_BOTTLE );
|
pTFPlayer->AwardAchievement( ACHIEVEMENT_TF_MVM_USE_AMMO_BOTTLE );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user