mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-07 09:01:57 +00:00
Ignore sv_unlimited_pickup on items that stay
- See http://forum.zdoom.org/viewtopic.php?f=2&t=47790
This commit is contained in:
parent
03c3621bb4
commit
d6b8603cb6
1 changed files with 1 additions and 1 deletions
|
@ -593,7 +593,7 @@ bool AInventory::HandlePickup (AInventory *item)
|
||||||
{
|
{
|
||||||
if (item->GetClass() == GetClass())
|
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)
|
if (Amount > 0 && Amount + item->Amount < 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue