From: Rudolf Polzer Date: Thu, 9 Feb 2012 09:41:17 +0000 (+0100) Subject: FIXME comment because falloffTolerance is checked in non-fast too for point lights... X-Git-Tag: xonotic-v0.6.0~18 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=c30d367a124dfe6342db19817e50964c44f17519 FIXME comment because falloffTolerance is checked in non-fast too for point lights, should we really do that? Maybe add a -slow then... --- diff --git a/tools/quake3/q3map2/light_ydnar.c b/tools/quake3/q3map2/light_ydnar.c index e08b12f5..576b2d48 100644 --- a/tools/quake3/q3map2/light_ydnar.c +++ b/tools/quake3/q3map2/light_ydnar.c @@ -3660,6 +3660,8 @@ void SetupEnvelopes( qboolean forGrid, qboolean fastFlag ) /* other calcs */ if( light->envelope <= 0.0f ) { + /* FIXME shouldn't we assume falloffTolerance == 0 when -fast is not used? */ + /* solve distance for non-distance lights */ if( !(light->flags & LIGHT_ATTEN_DISTANCE) ) light->envelope = MAX_WORLD_COORD * 8.0f;