diff options
author | Ben Millwood <thebenmachine@gmail.com> | 2009-10-03 13:15:05 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:37 +0000 |
commit | 26767f1713a6e1b12263c37f0659d527caf41a65 (patch) | |
tree | 2b72f81ae5685c9c5821de07524b203a43ba7d1f /src/cgame/cg_draw.c | |
parent | 37d5cabe0ad4b091e23432fefcaae2bc1e41d5e7 (diff) |
Fix weapon icon ammo counting
* Partially reverting 4f9b9168b506093020ea2fe7fd59c600972b2220 because
ammo is immediately set, so the icon has to immediately change too.
Diffstat (limited to 'src/cgame/cg_draw.c')
-rw-r--r-- | src/cgame/cg_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |