Ignore sv_unlimited_pickup on items that stay

- See http://forum.zdoom.org/viewtopic.php?f=2&t=47790
This commit is contained in:
Randy Heit 2015-04-22 22:27:56 -05:00
parent 03c3621bb4
commit d6b8603cb6

View file

@ -593,7 +593,7 @@ bool AInventory::HandlePickup (AInventory *item)
{
if (item->GetClass() == GetClass())
{
if (Amount < MaxAmount || sv_unlimited_pickup)
if (Amount < MaxAmount || (sv_unlimited_pickup && !item->ShouldStay()))
{
if (Amount > 0 && Amount + item->Amount < 0)
{