Skip to content

Commit f9496dc

Browse files
committed
add forgotten railgun ammo, revert medsmg and pdw ammo changes
1 parent 9aae80f commit f9496dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/game/server/swarm/asw_ammo.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ END_SEND_TABLE()
539539
BEGIN_DATADESC( CASW_Ammo_Railgun )
540540
END_DATADESC()
541541

542-
//LINK_ENTITY_TO_CLASS(asw_ammo_railgun, CASW_Ammo_Railgun);
542+
LINK_ENTITY_TO_CLASS(asw_ammo_railgun, CASW_Ammo_Railgun);
543543

544544
void CASW_Ammo_Railgun::Spawn( void )
545545
{
@@ -638,19 +638,19 @@ void CASW_Ammo_PDW::ActivateUseIcon( CASW_Inhabitable_NPC *pNPC, int nHoldType )
638638
return;
639639

640640
bool bMedRifleActive = pNPC->GetActiveWeapon() && pNPC->GetActiveWeapon()->GetPrimaryAmmoType() == GetAmmoDef()->Index( "ASW_MEDRIFLE" );
641-
if ( bMedRifleActive && ASW_GiveAmmo( pNPC, asw_ammo_count_medrifle.GetInt() * 2, "ASW_MEDRIFLE", this ) )
641+
if ( bMedRifleActive && ASW_GiveAmmo( pNPC, asw_ammo_count_medrifle.GetInt(), "ASW_MEDRIFLE", this ) )
642642
{
643643
UTIL_Remove( this );
644644
return;
645645
}
646646

647-
if ( ASW_GiveAmmo( pNPC, asw_ammo_count_pdw.GetInt() * 2, "ASW_PDW", this) )
647+
if ( ASW_GiveAmmo( pNPC, asw_ammo_count_pdw.GetInt(), "ASW_PDW", this) )
648648
{
649649
UTIL_Remove( this );
650650
return;
651651
}
652652

653-
if ( !bMedRifleActive && ASW_GiveAmmo( pNPC, asw_ammo_count_medrifle.GetInt() * 2, "ASW_MEDRIFLE", this ) )
653+
if ( !bMedRifleActive && ASW_GiveAmmo( pNPC, asw_ammo_count_medrifle.GetInt(), "ASW_MEDRIFLE", this ) )
654654
{
655655
UTIL_Remove( this );
656656
return;

0 commit comments

Comments
 (0)