FIXME comment because falloffTolerance is checked in non-fast too for point lights, should we really do that? Maybe add a -slow then...

This commit is contained in:
Rudolf Polzer 2012-02-09 10:41:17 +01:00
parent 0c44cbd7ea
commit c30d367a12

View File

@ -3660,6 +3660,8 @@ void SetupEnvelopes( qboolean forGrid, qboolean fastFlag )
/* other calcs */ /* other calcs */
if( light->envelope <= 0.0f ) if( light->envelope <= 0.0f )
{ {
/* FIXME shouldn't we assume falloffTolerance == 0 when -fast is not used? */
/* solve distance for non-distance lights */ /* solve distance for non-distance lights */
if( !(light->flags & LIGHT_ATTEN_DISTANCE) ) if( !(light->flags & LIGHT_ATTEN_DISTANCE) )
light->envelope = MAX_WORLD_COORD * 8.0f; light->envelope = MAX_WORLD_COORD * 8.0f;