From f7f51e1964e0062d56355a253ba03c84150bb249 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 17 Oct 2019 00:11:05 +0200 Subject: [PATCH] - fixed: The dynamic lights must be initialized before the first frame is ticked. Otherwise they only show up after the first frame. --- src/p_setup.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/p_setup.cpp b/src/p_setup.cpp index fd04bb915..0e8528a2c 100644 --- a/src/p_setup.cpp +++ b/src/p_setup.cpp @@ -563,6 +563,13 @@ void P_SetupLevel(FLevelLocals *Level, int position, bool newGame) Level->StartLightning(); } + auto it = Level->GetThinkerIterator(); + AActor* ac; + // Initial setup of the dynamic lights. + while ((ac = it.Next())) + { + ac->SetDynamicLights(); + } } //