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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user