1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00

Merge pull request #5069 from Laserlicht/video_fix

Video fix with subtitles
This commit is contained in:
Ivan Savenko 2024-12-12 13:37:22 +02:00 committed by GitHub
commit 1223639cef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,7 +173,7 @@ void VideoWidgetBase::tick(uint32_t msPassed)
{ {
videoInstance->tick(msPassed); videoInstance->tick(msPassed);
if(subTitle) if(!videoInstance->videoEnded() && subTitle)
subTitle->setText(getSubTitleLine(videoInstance->timeStamp())); subTitle->setText(getSubTitleLine(videoInstance->timeStamp()));
if(videoInstance->videoEnded()) if(videoInstance->videoEnded())