diff --git a/src/p_tick.cpp b/src/p_tick.cpp index 72202c44a..7253eafbe 100644 --- a/src/p_tick.cpp +++ b/src/p_tick.cpp @@ -93,7 +93,24 @@ void P_Ticker (void) // run the tic if (paused || P_CheckTickerPaused()) + { + // This must run even when the game is paused to catch changes from netevents before the frame is rendered. + for (auto Level : AllLevels()) + { + auto it = Level->GetThinkerIterator(); + AActor* ac; + + while ((ac = it.Next())) + { + if (ac->flags8 & MF8_RECREATELIGHTS) + { + ac->flags8 &= ~MF8_RECREATELIGHTS; + ac->SetDynamicLights(); + } + } + } return; + } DPSprite::NewTick();