If Inventory.MaxAmount > 1 on weapons, allow and track multiple pickups.

This commit is contained in:
raa-eruanna 2016-09-18 02:26:03 -04:00 committed by Christoph Oelckers
parent 0a24c15445
commit 76c5ff29fe

View file

@ -222,6 +222,10 @@ bool AWeapon::HandlePickup (AInventory *item)
{
item->ItemFlags |= IF_PICKUPGOOD;
}
if (MaxAmount > 1) //[SP] If amount<maxamount do another pickup test of the weapon itself!
{
return Super::HandlePickup (item);
}
return true;
}
if (Inventory != NULL)