q3map2 * fix: do not affect styled lightmaps by floodlight

port of https://github.com/id-tech-3-tools/map-compiler/pull/12
87b8589a3a
This commit is contained in:
Garux 2020-03-25 21:21:07 +03:00
parent 7fd32180e2
commit 1a614efce1

View File

@ -4484,6 +4484,9 @@ void FloodlightIlluminateLightmap( rawLightmap_t *lm ){
continue;
}
if( lm->styles[lightmapNum] != LS_NORMAL && lm->styles[lightmapNum] != LS_NONE ) // isStyleLight
continue;
/* apply floodlight to each luxel */
for ( y = 0; y < lm->sh; y++ )
{