fix crash with non-deluxe

git-svn-id: svn://svn.icculus.org/netradiant/trunk@119 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
rpolzer 2008-10-16 15:46:12 +00:00
parent 72fc8c39f4
commit 0178f5e7c6

View File

@ -2385,10 +2385,13 @@ void IlluminateRawLightmap( int rawLightmapNum )
if (luxel[3]==0) luxel[3]=1;
brightness = flood[ 0 ] * 0.3f + flood[ 1 ] * 0.59f + flood[ 2 ] * 0.11f;
brightness *= (1.0 / 255.0);
VectorScale( normal, brightness, temp );
VectorAdd( deluxel, temp, deluxel );
if(deluxemap)
{
brightness = flood[ 0 ] * 0.3f + flood[ 1 ] * 0.59f + flood[ 2 ] * 0.11f;
brightness *= (1.0 / 255.0);
VectorScale( normal, brightness, temp );
VectorAdd( deluxel, temp, deluxel );
}
}
}
}