From 0e4a4fdcf65f7e8cd12b5b6c3b8b8e9359fb8488 Mon Sep 17 00:00:00 2001 From: Garux Date: Fri, 2 Jul 2021 16:50:01 +0300 Subject: [PATCH] * fix _castShadows > 1: cast on world, as advertised --- tools/quake3/q3map2/light_trace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/quake3/q3map2/light_trace.cpp b/tools/quake3/q3map2/light_trace.cpp index 461de673..c2943808 100644 --- a/tools/quake3/q3map2/light_trace.cpp +++ b/tools/quake3/q3map2/light_trace.cpp @@ -1276,9 +1276,9 @@ bool TraceTriangle( traceInfo_t *ti, traceTriangle_t *tt, trace_t *trace ){ return false; } - /* receive shadows from worldspawn group only */ + /* worldspawn group only receives shadows from positive groups */ if ( trace->recvShadows == 1 ) { - if ( ti->castShadows != 1 ) { + if ( ti->castShadows <= 0 ) { return false; } }