diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2010-12-05 04:23:51 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:44 +0000 |
commit | 326699aefc10cddd8b16ccfd054eeb9c50b30973 (patch) | |
tree | 922ecdd077f08bfd85e9d7d45fe91c5b2f19740f /src | |
parent | 4c706760abee290aa50e67e85881918cfbdf7b06 (diff) |
* (bug 4764) Fix occaisionally showing [0] for teammate health in crosshair name text (thanks Kiwi)
Diffstat (limited to 'src')
-rw-r--r-- | src/cgame/cg_draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index 24bc2d94..6e6753f2 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -2557,7 +2557,8 @@ static void CG_DrawCrosshairNames( rectDef_t *rect, float scale, int textStyle ) name = cgs.clientinfo[ cg.crosshairClientNum ].name; if( cg_teamOverlayUserinfo.integer && cg.snap->ps.stats[ STAT_TEAM ] != TEAM_NONE && - cgs.teaminfoReceievedTime ) + cgs.teaminfoReceievedTime && + cgs.clientinfo[ cg.crosshairClientNum ].health > 0 ) { name = va( "%s ^7[^%c%d^7]", name, CG_GetColorCharForHealth( cg.crosshairClientNum ), |