# HG changeset patch # User Adam Kaminski # Date 1626531320 14400 # Sat Jul 17 10:15:20 2021 -0400 # Node ID 5133dfa8de21ac9a6a2d2491559279122543cb45 # Parent 1eca6782e0e61e3cc6b99dea30630e15b2746771 Don't display dynamic lights on spectators. diff -r 1eca6782e0e6 -r 5133dfa8de21 src/gl/dynlights/gl_dynlight.cpp --- a/src/gl/dynlights/gl_dynlight.cpp Sun Jul 11 20:33:35 2021 -0400 +++ b/src/gl/dynlights/gl_dynlight.cpp Sat Jul 17 10:15:20 2021 -0400 @@ -1110,6 +1110,10 @@ if ( NETWORK_GetState( ) == NETSTATE_SERVER ) return; + // [AK] Don't display dynamic lights on spectators. + if (( actor->player != NULL ) && ( actor->player->bSpectating )) + return; + TArray * l = gl_GetActorLights(actor); unsigned int count = 0;