From: Rudolf Polzer Date: Tue, 24 Sep 2013 12:51:54 +0000 (+0200) Subject: Found why RadSubdivideDiffuseLight happens with !bouncing. Trying X-Git-Tag: xonotic-v0.8.0~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=214d4c94ced6f09963fe009f3c70e456bb01aa1a;p=xonotic%2Fnetradiant.git Found why RadSubdivideDiffuseLight happens with !bouncing. Trying another one now. --- diff --git a/tools/quake3/q3map2/light_bounce.c b/tools/quake3/q3map2/light_bounce.c index d91744f0..37d8c4e5 100644 --- a/tools/quake3/q3map2/light_bounce.c +++ b/tools/quake3/q3map2/light_bounce.c @@ -264,6 +264,8 @@ static void RadSample( int lightmapNum, bspDrawSurface_t *ds, rawLightmap_t *lm, float st[ 2 ], lightmap[ 2 ], *radLuxel; radVert_t *rv[ 3 ]; + if (!bouncing) + Sys_Printf( "BUG: RadSample: !bouncing shouldn't happen\n" ); /* initial setup */ ClearBounds( mins, maxs ); @@ -551,7 +553,8 @@ static void RadSubdivideDiffuseLight( int lightmapNum, bspDrawSurface_t *ds, raw /* bouncing light? */ if ( !bouncing ) { - Sys_Printf( "BUG: RadSubdivideDiffuseLight !bouncing shouldn't happen\n" ); + /* This is weird. This actually handles surfacelight and not + * bounces. */ /* handle first-pass lights in normal q3a style */ value = si->value;