2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-12-27 11:16:43 +01:00

ref: remove unneeded dlight pointer increment

This commit is contained in:
Alibek Omarov 2024-06-13 05:18:15 +03:00
parent 5f4b8b60cb
commit 6aef422de6
2 changed files with 4 additions and 6 deletions

View File

@ -147,7 +147,6 @@ R_PushDlights
*/
void R_PushDlights( void )
{
dlight_t *l;
int i;
tr.dlightframecount = tr.framecount;
@ -160,9 +159,9 @@ void R_PushDlights( void )
RI.currentmodel = RI.currententity->model;
for( i = 0; i < MAX_DLIGHTS; i++, l++ )
for( i = 0; i < MAX_DLIGHTS; i++ )
{
l = gEngfuncs.GetDynamicLight( i );
dlight_t *l = gEngfuncs.GetDynamicLight( i );
if( l->die < gp_cl->time || !l->radius )
continue;

View File

@ -150,7 +150,6 @@ R_PushDlights
*/
void R_PushDlights( void )
{
dlight_t *l;
int i;
tr.dlightframecount = tr.framecount;
@ -163,9 +162,9 @@ void R_PushDlights( void )
RI.currentmodel = RI.currententity->model;
for( i = 0; i < MAX_DLIGHTS; i++, l++ )
for( i = 0; i < MAX_DLIGHTS; i++ )
{
l = gEngfuncs.GetDynamicLight( i );
dlight_t *l = gEngfuncs.GetDynamicLight( i );
if( l->die < gp_cl->time || !l->radius )
continue;