Fix attacker icon being default image if attacker left

With cg_draw3dicons 0 if attacker is kicked or disconnects, the
attacker icon becomes the default image.
This commit is contained in:
Zack Middleton 2015-03-23 19:53:18 -05:00
parent 1897afbd3a
commit 7a39f4a30c
1 changed files with 5 additions and 0 deletions

View File

@ -679,6 +679,11 @@ static float CG_DrawAttacker( float y ) {
return y;
}
if ( !cgs.clientinfo[clientNum].infoValid ) {
cg.attackerTime = 0;
return y;
}
t = cg.time - cg.attackerTime;
if ( t > ATTACKER_HEAD_TIME ) {
cg.attackerTime = 0;