* fix _castShadows > 1: cast on world, as advertised

This commit is contained in:
Garux 2021-07-02 16:50:01 +03:00
parent 4471302857
commit 0e4a4fdcf6

View File

@ -1276,9 +1276,9 @@ bool TraceTriangle( traceInfo_t *ti, traceTriangle_t *tt, trace_t *trace ){
return false; return false;
} }
/* receive shadows from worldspawn group only */ /* worldspawn group only receives shadows from positive groups */
if ( trace->recvShadows == 1 ) { if ( trace->recvShadows == 1 ) {
if ( ti->castShadows != 1 ) { if ( ti->castShadows <= 0 ) {
return false; return false;
} }
} }