1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 03:40:14 +00:00

Loop main menu video when it's finished playing

This commit is contained in:
scrawl 2014-05-30 11:22:44 +02:00
parent ac77b07e29
commit 8761aa5795

View File

@ -200,7 +200,13 @@ namespace MWGui
void MainMenu::update(float dt) void MainMenu::update(float dt)
{ {
if (mVideo) if (mVideo)
mVideo->update(); {
if (!mVideo->update())
{
// If finished playing, start again
mVideo->playVideo("video\\menu_background.bik", 0);
}
}
} }
void MainMenu::updateMenu() void MainMenu::updateMenu()