mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
- Remove max ammo fudging for when showing the magazine amount for Duke since it overrides ammo maximums set from CON.
This commit is contained in:
parent
dca964444b
commit
9bebd7fabf
1 changed files with 0 additions and 21 deletions
|
@ -2630,27 +2630,6 @@ static void processweapon(int snum, ESyncBits actions, int psect)
|
|||
auto s = pact->s;
|
||||
int shrunk = (s->yrepeat < 32);
|
||||
|
||||
// Set maximum for pistol slightly higher if playing with `cl_showmagamount 1`.
|
||||
if (!cl_showmagamt)
|
||||
{
|
||||
if (p->ammo_amount[PISTOL_WEAPON] > PISTOL_MAXDEFAULT)
|
||||
p->ammo_amount[PISTOL_WEAPON] = PISTOL_MAXDEFAULT;
|
||||
|
||||
if (gs.max_ammo_amount[PISTOL_WEAPON] != PISTOL_MAXDEFAULT)
|
||||
gs.max_ammo_amount[PISTOL_WEAPON] = PISTOL_MAXDEFAULT;
|
||||
}
|
||||
else
|
||||
{
|
||||
short pistolAddition = 4;
|
||||
short pistolNewMaximum = PISTOL_MAXDEFAULT + pistolAddition;
|
||||
|
||||
if (p->ammo_amount[PISTOL_WEAPON] == PISTOL_MAXDEFAULT && gs.max_ammo_amount[PISTOL_WEAPON] == PISTOL_MAXDEFAULT)
|
||||
p->ammo_amount[PISTOL_WEAPON] += pistolAddition;
|
||||
|
||||
if (gs.max_ammo_amount[PISTOL_WEAPON] != pistolNewMaximum)
|
||||
gs.max_ammo_amount[PISTOL_WEAPON] = pistolNewMaximum;
|
||||
}
|
||||
|
||||
if (isNamWW2GI() && (actions & SB_HOLSTER)) // 'Holster Weapon
|
||||
{
|
||||
if (isWW2GI())
|
||||
|
|
Loading…
Reference in a new issue