Fixed an issue where the video would not start playing immediately after closing the media viewer if the showSnapshotDelay property was not set.

This commit is contained in:
Leon Styhre 2022-08-16 23:39:33 +02:00
parent 640793ec0a
commit 141f8aadf4

View file

@ -231,7 +231,7 @@ void VideoComponent::update(int deltaTime)
}
// Hack to prevent the video from starting to play if the static image was shown when paused.
if (mPaused)
if (mConfig.showSnapshotDelay && mPaused)
mStartTime = SDL_GetTicks() + mConfig.startDelay;
if (mWindow->getGameLaunchedState())