From 090fbf3d0ddd3472615f249d7215421fc67b313b Mon Sep 17 00:00:00 2001 From: Garux Date: Wed, 25 Mar 2020 21:21:07 +0300 Subject: [PATCH] q3map2 * fix: do not affect styled lightmaps by floodlight port of https://github.com/id-tech-3-tools/map-compiler/pull/12 https://github.com/id-tech-3-tools/map-compiler/commit/87b8589a3a5069c482243bb33c587fc18911746c --- tools/quake3/q3map2/light_ydnar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/quake3/q3map2/light_ydnar.c b/tools/quake3/q3map2/light_ydnar.c index b2114f7c..40958614 100644 --- a/tools/quake3/q3map2/light_ydnar.c +++ b/tools/quake3/q3map2/light_ydnar.c @@ -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 );