mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
If Inventory.MaxAmount > 1 on weapons, allow and track multiple pickups.
This commit is contained in:
parent
0a24c15445
commit
76c5ff29fe
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue