mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: gl: migrate to new way to get lightstyles and dlights
This commit is contained in:
@@ -578,7 +578,6 @@ static void R_AliasDynamicLight( cl_entity_t *ent, alight_t *plight )
|
||||
float add, radius, total;
|
||||
colorVec light;
|
||||
uint lnum;
|
||||
dlight_t *dl;
|
||||
|
||||
if( !plight || !ent )
|
||||
return;
|
||||
@@ -694,7 +693,7 @@ static void R_AliasDynamicLight( cl_entity_t *ent, alight_t *plight )
|
||||
|
||||
for( lnum = 0; lnum < MAX_DLIGHTS; lnum++ )
|
||||
{
|
||||
dl = gEngfuncs.GetDynamicLight( lnum );
|
||||
const dlight_t *dl = &tr.dlights[lnum];
|
||||
|
||||
if( dl->die < g_alias.time || !r_dynamic->value )
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user