summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 13:04:25 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:27 +0000
commita5412486df5c410084fe8a9c487f565d64cda01a (patch)
treef163b26a32215cb02bd7ec78dd2a5e100043d006 /src/cgame
parentd7632e5105dade679356f042b33d0e01831a15f9 (diff)
Improve timing of weapon change feedback
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c
index b12174f2..144e6983 100644
--- a/src/cgame/cg_draw.c
+++ b/src/cgame/cg_draw.c
@@ -2049,7 +2049,7 @@ void CG_DrawWeaponIcon( rectDef_t *rect, vec4_t color )
cent = &cg_entities[ cg.snap->ps.clientNum ];
ps = &cg.snap->ps;
- weapon = BG_GetPlayerWeapon( ps );
+ weapon = ps->weapon;
maxAmmo = BG_Weapon( weapon )->maxAmmo;