1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-20 06:40:09 +00:00

Fix music during a new game start

This commit is contained in:
Andrei Kortunov 2023-09-12 14:50:19 +04:00
parent e25e867d77
commit cbb4c1bb9a

View File

@ -392,7 +392,9 @@ namespace MWWorld
std::string_view video = Fallback::Map::getString("Movies_New_Game");
if (!video.empty())
{
// Make sure that we do not continue to play a Title music after a new game video.
MWBase::Environment::get().getSoundManager()->stopMusic();
MWBase::Environment::get().getSoundManager()->playPlaylist(std::string("Explore"));
MWBase::Environment::get().getWindowManager()->playVideo(video, true);
}
}