diff --git a/ref/gl/gl_rlight.c b/ref/gl/gl_rlight.c index df10cde3..c17b779b 100644 --- a/ref/gl/gl_rlight.c +++ b/ref/gl/gl_rlight.c @@ -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; diff --git a/ref/soft/r_light.c b/ref/soft/r_light.c index 281a24d4..7ceb1231 100644 --- a/ref/soft/r_light.c +++ b/ref/soft/r_light.c @@ -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;