From dce6456994cddf1ab656758cf12f43a4eaef3f0a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 23 May 2022 00:01:49 +0200 Subject: [PATCH] - fix dynamic light setup. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The level’s global flag is unreliable and cannot be used. The operation this was initially supposed to skip cannot be skipped anyway so the impact should be minor. --- src/playsim/dthinker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playsim/dthinker.cpp b/src/playsim/dthinker.cpp index 115e16c539..1e794dad79 100644 --- a/src/playsim/dthinker.cpp +++ b/src/playsim/dthinker.cpp @@ -111,7 +111,7 @@ void FThinkerCollection::RunThinkers(FLevelLocals *Level) bool dolights; if ((gl_lights && vid_rendermode == 4) || (r_dynlights && vid_rendermode != 4)) { - dolights = Level->lights || (Level->flags3 & LEVEL3_LIGHTCREATED); + dolights = true;// Level->lights || (Level->flags3 & LEVEL3_LIGHTCREATED); } else {