mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +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