From e800522e26a0f9dcd2ed2faf7565b15d549dd231 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 1 Jul 2012 22:47:13 +0000 Subject: [PATCH] - Fixed: sv_unlimited_pickup did not work with the flechette. SVN r3727 (trunk) --- src/g_hexen/a_flechette.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/g_hexen/a_flechette.cpp b/src/g_hexen/a_flechette.cpp index 7cdcca96d7..6efa342afe 100644 --- a/src/g_hexen/a_flechette.cpp +++ b/src/g_hexen/a_flechette.cpp @@ -14,6 +14,8 @@ #include "g_level.h" */ +EXTERN_CVAR(Bool, sv_unlimited_pickup) + static FRandom pr_poisonbag ("PoisonBag"); static FRandom pr_poisoncloud ("PoisonCloud"); static FRandom pr_poisoncloudd ("PoisonCloudDamage"); @@ -239,10 +241,10 @@ bool AArtiPoisonBag::HandlePickup (AInventory *item) if (GetClass() == GetFlechetteType(Owner)) { - if (Amount < MaxAmount) + if (Amount < MaxAmount || sv_unlimited_pickup) { Amount += item->Amount; - if (Amount > MaxAmount) + if (Amount > MaxAmount && !sv_unlimited_pickup) { Amount = MaxAmount; }