From 26767f1713a6e1b12263c37f0659d527caf41a65 Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 13:15:05 +0000 Subject: Fix weapon icon ammo counting * Partially reverting 4f9b9168b506093020ea2fe7fd59c600972b2220 because ammo is immediately set, so the icon has to immediately change too. --- src/cgame/cg_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index c28758d1..fe81e269 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -2062,7 +2062,7 @@ void CG_DrawWeaponIcon( rectDef_t *rect, vec4_t color ) cent = &cg_entities[ cg.snap->ps.clientNum ]; ps = &cg.snap->ps; - weapon = ps->weapon; + weapon = BG_GetPlayerWeapon( ps ); maxAmmo = BG_Weapon( weapon )->maxAmmo; -- cgit