mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-08 15:22:07 +00:00
remove the no-longer needed test to determine whether dlights should be added
to a player
This commit is contained in:
parent
b2c282de93
commit
6025486e15
1 changed files with 19 additions and 24 deletions
|
@ -53,8 +53,6 @@ extern cvar_t *cl_predict_players;
|
|||
extern cvar_t *cl_predict_players2;
|
||||
extern cvar_t *cl_solid_players;
|
||||
|
||||
extern cvar_t *gl_flashblend;
|
||||
|
||||
cvar_t *r_firecolor;
|
||||
|
||||
static struct predicted_player {
|
||||
|
@ -900,9 +898,6 @@ CL_LinkPlayers (void)
|
|||
continue; // not present this frame
|
||||
|
||||
// spawn light flashes, even ones coming from invisible objects
|
||||
// but not for the player if using gl_flashblend
|
||||
if (!gl_flashblend->int_val || j != cl.playernum) {
|
||||
|
||||
if (j == cl.playernum) {
|
||||
VectorCopy (cl.simorg, org);
|
||||
} else
|
||||
|
@ -923,7 +918,7 @@ CL_LinkPlayers (void)
|
|||
else if (state->effects & EF_DIMLIGHT)
|
||||
CL_NewDlight (j, org[0], org[1], org[2], 200 + (rand () & 31),
|
||||
0.1, 0);
|
||||
}
|
||||
|
||||
// the player object never gets added
|
||||
if (j == cl.playernum)
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue