mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- Fixed: sv_unlimited_pickup did not work with the flechette.
SVN r3727 (trunk)
This commit is contained in:
parent
8f39e692e7
commit
e800522e26
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue