From e2e008d695a72da9dcbec981b79718e26f0093f2 Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 4 Oct 2004 07:27:41 +0000 Subject: [PATCH] fixing visability of tracked players with cl_chasecam 1 git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@304 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_rmain.c | 3 +++ engine/sw/r_main.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/engine/gl/gl_rmain.c b/engine/gl/gl_rmain.c index 266e35c83..ffc0021e3 100644 --- a/engine/gl/gl_rmain.c +++ b/engine/gl/gl_rmain.c @@ -521,6 +521,9 @@ void GLR_DrawEntitiesOnList (void) if (cl.viewentity[r_refdef.currentplayernum] && currententity->keynum == cl.viewentity[r_refdef.currentplayernum]) continue; + if (!Cam_DrawPlayer(0, currententity->keynum-1)) + continue; + if (!currententity->model) continue; diff --git a/engine/sw/r_main.c b/engine/sw/r_main.c index 19ba01ce8..b34fdcffa 100644 --- a/engine/sw/r_main.c +++ b/engine/sw/r_main.c @@ -661,6 +661,9 @@ void SWR_DrawEntitiesOnList (void) if (currententity->flags & 2) continue; + if (!Cam_DrawPlayer(0, currententity->keynum-1)) + continue; + if (!currententity->model) continue;