Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Feb 8, 2025
1 parent 207f673 commit 4cb135e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Plugins/Renderer/gl_rmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4146,15 +4146,6 @@ void R_SetupFlashlights()
if (ent->curstate.effects & EF_DIMLIGHT)
{
CL_EmitPlayerFlashlight(entindex);

dl = gEngfuncs.pEfxAPI->CL_AllocDlight(DLIGHT_KEY_PLAYER_FLASHLIGHT + entindex);
if (dl)
{
VectorCopy(ent->origin, dl->origin);
dl->color.r = dl->color.g = dl->color.b = 100;
dl->radius = gEngfuncs.pfnRandomFloat(200, 231);
dl->die = (*cl_time) + 0.001f;
}
}
}
}
Expand Down

0 comments on commit 4cb135e

Please sign in to comment.