-IlluminateRawLightmap()
-illuminates the luxels
-*/
-
-#define STACK_LL_SIZE (SUPER_LUXEL_SIZE * 64 * 64)
-#define LIGHT_LUXEL( x, y ) (lightLuxels + ((((y) * lm->sw) + (x)) * SUPER_LUXEL_SIZE))
-#define LIGHT_DELUXEL( x, y ) (lightDeluxels + ((((y) * lm->sw) + (x)) * SUPER_DELUXEL_SIZE))
-
-void IlluminateRawLightmap( int rawLightmapNum )
-{
- int i, t, x, y, sx, sy, size, luxelFilterRadius, lightmapNum;
- int *cluster, *cluster2, mapped, lighted, totalLighted;
- size_t llSize, ldSize;
- rawLightmap_t *lm;
- surfaceInfo_t *info;
- qboolean filterColor, filterDir;
- float brightness;
- float *origin, *normal, *dirt, *luxel, *luxel2, *deluxel, *deluxel2;
- unsigned char *flag;
- float *lightLuxels, *lightDeluxels, *lightLuxel, *lightDeluxel, samples, filterRadius, weight;
- vec3_t color, direction, averageColor, averageDir, total, temp, temp2;
- float tests[ 4 ][ 2 ] = { { 0.0f, 0 }, { 1, 0 }, { 0, 1 }, { 1, 1 } };
- trace_t trace;
- float stackLightLuxels[ STACK_LL_SIZE ];
-
-
+ IlluminateRawLightmap()
+ illuminates the luxels
+ */
+
+#define STACK_LL_SIZE ( SUPER_LUXEL_SIZE * 64 * 64 )
+#define LIGHT_LUXEL( x, y ) ( lightLuxels + ( ( ( ( y ) * lm->sw ) + ( x ) ) * SUPER_LUXEL_SIZE ) )
+#define LIGHT_DELUXEL( x, y ) ( lightDeluxels + ( ( ( ( y ) * lm->sw ) + ( x ) ) * SUPER_DELUXEL_SIZE ) )
+
+void IlluminateRawLightmap( int rawLightmapNum ){
+ int i, t, x, y, sx, sy, size, luxelFilterRadius, lightmapNum;
+ int *cluster, *cluster2, mapped, lighted, totalLighted;
+ size_t llSize, ldSize;
+ rawLightmap_t *lm;
+ surfaceInfo_t *info;
+ qboolean filterColor, filterDir;
+ float brightness;
+ float *origin, *normal, *dirt, *luxel, *luxel2, *deluxel, *deluxel2;
+ unsigned char *flag;
+ float *lightLuxels, *lightDeluxels, *lightLuxel, *lightDeluxel, samples, filterRadius, weight;
+ vec3_t color, direction, averageColor, averageDir, total, temp, temp2;
+ float tests[ 4 ][ 2 ] = { { 0.0f, 0 }, { 1, 0 }, { 0, 1 }, { 1, 1 } };
+ trace_t trace;
+ float stackLightLuxels[ STACK_LL_SIZE ];
+
+