mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
- 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:
parent
89ecd7a964
commit
f7f51e1964
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue