mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-06 15:51:25 +00:00
Re-enable rendering lights on the player you are viewing from...
This commit is contained in:
parent
4bd03bfff3
commit
c8fcdd5813
1 changed files with 18 additions and 18 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue