mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-10 23:27:53 +00:00
ref_soft: light: fixed game crash in Customize multiplayer menu
This commit is contained in:
parent
9515cccb94
commit
92cfa2af48
@ -156,6 +156,7 @@ void R_PushDlights( void )
|
|||||||
tr.dlightframecount = tr.framecount;
|
tr.dlightframecount = tr.framecount;
|
||||||
|
|
||||||
RI.currententity = gEngfuncs.GetEntityByIndex( 0 );
|
RI.currententity = gEngfuncs.GetEntityByIndex( 0 );
|
||||||
|
if( RI.currententity )
|
||||||
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++ )
|
||||||
@ -168,6 +169,7 @@ void R_PushDlights( void )
|
|||||||
//if( GL_FrustumCullSphere( &RI.frustum, l->origin, l->radius, 15 ))
|
//if( GL_FrustumCullSphere( &RI.frustum, l->origin, l->radius, 15 ))
|
||||||
//continue;
|
//continue;
|
||||||
|
|
||||||
|
if( RI.currententity )
|
||||||
R_MarkLights( l, 1<<i, RI.currentmodel->nodes );
|
R_MarkLights( l, 1<<i, RI.currentmodel->nodes );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user