|
|
@ -72,7 +72,7 @@ static void R_BuildLightMap( void ); |
|
|
|
R_AddDynamicLights |
|
|
|
R_AddDynamicLights |
|
|
|
=============== |
|
|
|
=============== |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
void R_AddDynamicLights( msurface_t *surf ) |
|
|
|
static void R_AddDynamicLights( msurface_t *surf ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
float dist, rad, minlight; |
|
|
|
float dist, rad, minlight; |
|
|
|
int lnum, s, t, sd, td, smax, tmax; |
|
|
|
int lnum, s, t, sd, td, smax, tmax; |
|
|
@ -86,7 +86,7 @@ void R_AddDynamicLights( msurface_t *surf ) |
|
|
|
uint *bl; |
|
|
|
uint *bl; |
|
|
|
|
|
|
|
|
|
|
|
// no dlighted surfaces here
|
|
|
|
// no dlighted surfaces here
|
|
|
|
//if( !R_CountSurfaceDlights( surf )) return;
|
|
|
|
if( !surf->dlightbits ) return; |
|
|
|
|
|
|
|
|
|
|
|
sample_size = gEngfuncs.Mod_SampleSizeForFace( surf ); |
|
|
|
sample_size = gEngfuncs.Mod_SampleSizeForFace( surf ); |
|
|
|
smax = (info->lightextents[0] / sample_size) + 1; |
|
|
|
smax = (info->lightextents[0] / sample_size) + 1; |
|
|
|