Fix original bug, picking up the ammo pack reduces max fletchettes.

Flachettes have a base maximum of 200. Picking up the bandolier
increases it to 250. Picking up the ammo pack afterwards reset the
maximum to 200. Fix this by setting the maximum after picking up
the ammo pack to 300.
This commit is contained in:
Yamagi 2023-11-04 11:14:53 +01:00
parent f0a8e88abc
commit bd0019db85

View file

@ -405,9 +405,9 @@ Pickup_Pack(edict_t *ent, edict_t *other)
other->client->pers.max_slugs = 100;
}
if (other->client->pers.max_flechettes < 200)
if (other->client->pers.max_flechettes < 300)
{
other->client->pers.max_flechettes = 200;
other->client->pers.max_flechettes = 300;
}
if (g_disruptor->value)