[iortcw] 321/497: SP: Fix attacker icon being default image if attacker left (Unused)

Simon McVittie smcv at debian.org
Fri Sep 8 10:37:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit e01245c57b6d9552df0687614649683dbdf412f1
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Tue Mar 24 07:08:34 2015 -0400

    SP: Fix attacker icon being default image if attacker left (Unused)
---
 SP/code/cgame/cg_draw.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/SP/code/cgame/cg_draw.c b/SP/code/cgame/cg_draw.c
index aa835f1..e9b0c3b 100644
--- a/SP/code/cgame/cg_draw.c
+++ b/SP/code/cgame/cg_draw.c
@@ -898,6 +898,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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list