From fbbe82d543b28878f4040be45e633daaca99010d Mon Sep 17 00:00:00 2001 From: BjossiAlfreds Date: Thu, 19 Sep 2019 23:52:06 +0000 Subject: [PATCH] Quick code style fix --- src/player/weapon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/player/weapon.c b/src/player/weapon.c index 575da9f..7500c43 100644 --- a/src/player/weapon.c +++ b/src/player/weapon.c @@ -2334,7 +2334,9 @@ weapon_etf_rifle_fire(edict_t *ent) ent->client->ps.gunframe++; if (!((int)dmflags->value & DF_INFINITE_AMMO)) + { ent->client->pers.inventory[ent->client->ammo_index] -= ent->client->pers.weapon->quantity; + } ent->client->anim_priority = ANIM_ATTACK;