Re-enable rendering lights on the player you are viewing from...

This commit is contained in:
Ragnvald Maartmann-Moe IV 2002-07-03 00:37:28 +00:00
parent 4bd03bfff3
commit c8fcdd5813

View file

@ -548,7 +548,7 @@ CL_LinkPacketEntities (void)
}
}
/* PROJECTILE PARSING / LINKING */
// PROJECTILE PARSING / LINKING ===============================================
void
CL_ClearProjectiles (void)
@ -822,15 +822,6 @@ CL_LinkPlayers (void)
if (!info->name[0])
continue;
// the player object never gets added
if (j == cl.playernum) {
if (!Cam_DrawPlayer (-1)) // XXX
continue;
} else {
if (!Cam_DrawPlayer (j))
continue;
}
// spawn light flashes, even ones coming from invisible objects
if (j == cl.playernum) {
VectorCopy (cl.simorg, org);
@ -840,6 +831,15 @@ CL_LinkPlayers (void)
CL_NewDlight (j, org, state->effects, state->glow_size,
state->glow_color);
// the player object never gets added
if (j == cl.playernum) {
if (!Cam_DrawPlayer (-1)) // XXX
continue;
} else {
if (!Cam_DrawPlayer (j))
continue;
}
if (!state->modelindex)
continue;