forked from mirror/openmw-tes3mp
Loop main menu video when it's finished playing
This commit is contained in:
parent
ac77b07e29
commit
8761aa5795
1 changed files with 7 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue