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 committed by Thomas Debesse
parent 1f6d29eac8
commit 090fbf3d0d

View file

@ -4109,6 +4109,9 @@ float FloodLightForSample( trace_t *trace ){
/* set endpoint */
VectorMA( trace->origin, dd, direction, trace->end );
if( lm->styles[lightmapNum] != LS_NORMAL && lm->styles[lightmapNum] != LS_NONE ) // isStyleLight
continue;
//VectorMA( trace->origin, 1, direction, trace->origin );
SetupTrace( trace );