This hopefully fixes the problem with feigning spies in TF staying visible when cl_deadbodyfilter is on.

This commit is contained in:
Anton E. Gavrilov 2000-10-16 08:15:22 +00:00
parent cf8afd73a3
commit 9698c439dc

View file

@ -911,7 +911,7 @@ for all current players
*/
void CL_LinkPlayers (void)
{
int j;
int i, j;
player_info_t *info;
player_state_t *state;
player_state_t exact;
@ -962,6 +962,11 @@ void CL_LinkPlayers (void)
if (!state->modelindex)
continue;
// Hack hack hack
if (cl_deadbodyfilter->value && state->modelindex == cl_playerindex
&& ( (i=state->frame)==49 || i==60 || i==69 || i==84 || i==93 || i==102) )
continue;
if (!Cam_DrawPlayer(j))
continue;