- fixed: The dynamic lights must be initialized before the first frame is ticked.

Otherwise they only show up after the first frame.
This commit is contained in:
Christoph Oelckers 2019-10-17 00:11:05 +02:00
parent 89ecd7a964
commit f7f51e1964
1 changed files with 7 additions and 0 deletions

View File

@ -563,6 +563,13 @@ void P_SetupLevel(FLevelLocals *Level, int position, bool newGame)
Level->StartLightning();
}
auto it = Level->GetThinkerIterator<AActor>();
AActor* ac;
// Initial setup of the dynamic lights.
while ((ac = it.Next()))
{
ac->SetDynamicLights();
}
}
//