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:
parent
1897afbd3a
commit
7a39f4a30c
1 changed files with 5 additions and 0 deletions
|
@ -679,6 +679,11 @@ static float CG_DrawAttacker( float y ) {
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( !cgs.clientinfo[clientNum].infoValid ) {
|
||||||
|
cg.attackerTime = 0;
|
||||||
|
return y;
|
||||||
|
}
|
||||||
|
|
||||||
t = cg.time - cg.attackerTime;
|
t = cg.time - cg.attackerTime;
|
||||||
if ( t > ATTACKER_HEAD_TIME ) {
|
if ( t > ATTACKER_HEAD_TIME ) {
|
||||||
cg.attackerTime = 0;
|
cg.attackerTime = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue