/* dependencies */
+#include <assert.h>
#include "q3map2.h"
static qboolean SubmapRawLuxel( rawLightmap_t *lm, int x, int y, float bx, float by, int *sampleCluster, vec3_t sampleOrigin, vec3_t sampleNormal ){
int i, *cluster, *cluster2;
- float *origin, *origin2, *normal; //% , *normal2;
+ float *origin = NULL, *origin2 = NULL, *normal; //% , *normal2;
vec3_t originVecs[ 2 ]; //% , normalVecs[ 2 ];
}
else {
Sys_FPrintf( SYS_WRN, "WARNING: Spurious lightmap S vector\n" );
+ assert(0);
}
VectorSubtract( origin2, origin, originVecs[ 0 ] );
}
else {
Sys_FPrintf( SYS_WRN, "WARNING: Spurious lightmap T vector\n" );
+ assert(0);
}
VectorSubtract( origin2, origin, originVecs[ 1 ] );
else{
light->flags &= ~LIGHT_FAST_TEMP;
}
- if ( fastpoint && ( light->flags != EMIT_AREA ) ) {
+ if ( fastpoint && ( light->type != EMIT_AREA ) ) {
light->flags |= LIGHT_FAST_TEMP;
}
if ( light->si && light->si->noFast ) {