mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
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;
|
||||
}
|
||||
|
||||
if ( !cgs.clientinfo[clientNum].infoValid ) {
|
||||
cg.attackerTime = 0;
|
||||
return y;
|
||||
}
|
||||
|
||||
t = cg.time - cg.attackerTime;
|
||||
if ( t > ATTACKER_HEAD_TIME ) {
|
||||
cg.attackerTime = 0;
|
||||
|
|
Loading…
Reference in a new issue