ref: remove unneeded dlight pointer increment
This commit is contained in:
parent
5f4b8b60cb
commit
6aef422de6
2 changed files with 4 additions and 6 deletions
|
@ -147,7 +147,6 @@ R_PushDlights
|
||||||
*/
|
*/
|
||||||
void R_PushDlights( void )
|
void R_PushDlights( void )
|
||||||
{
|
{
|
||||||
dlight_t *l;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
tr.dlightframecount = tr.framecount;
|
tr.dlightframecount = tr.framecount;
|
||||||
|
@ -160,9 +159,9 @@ void R_PushDlights( void )
|
||||||
|
|
||||||
RI.currentmodel = RI.currententity->model;
|
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 )
|
if( l->die < gp_cl->time || !l->radius )
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -150,7 +150,6 @@ R_PushDlights
|
||||||
*/
|
*/
|
||||||
void R_PushDlights( void )
|
void R_PushDlights( void )
|
||||||
{
|
{
|
||||||
dlight_t *l;
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
tr.dlightframecount = tr.framecount;
|
tr.dlightframecount = tr.framecount;
|
||||||
|
@ -163,9 +162,9 @@ void R_PushDlights( void )
|
||||||
|
|
||||||
RI.currentmodel = RI.currententity->model;
|
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 )
|
if( l->die < gp_cl->time || !l->radius )
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Reference in a new issue