fix pistol clips pickup when akimbo magazine is full

When player didn't have full pistol magazine, took akimbo and had full
akimbo magazine, then he couldn't pick up pistol clips.
This commit is contained in:
aurhat
2021-10-19 23:34:51 +02:00
parent 3fd2ba17fb
commit 51f47427a2
+1 -1
View File
@@ -283,7 +283,7 @@ public:
{
switch(type)
{
case I_CLIPS: return ammo[akimbo ? GUN_AKIMBO : GUN_PISTOL]<ammostats[akimbo ? GUN_AKIMBO : GUN_PISTOL].max;
case I_CLIPS: return ammo[akimbo && ammo[GUN_AKIMBO]<ammostats[GUN_AKIMBO].max ? GUN_AKIMBO : GUN_PISTOL]<ammostats[akimbo && ammo[GUN_AKIMBO]<ammostats[GUN_AKIMBO].max ? GUN_AKIMBO : GUN_PISTOL].max;
case I_AMMO: return ammo[primary]<ammostats[primary].max;
case I_GRENADE: return mag[GUN_GRENADE]<ammostats[GUN_GRENADE].max;
case I_HEALTH: return health<powerupstats[type-I_HEALTH].max;