1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Music: remember playback position of music tracks

Town & terrain themes will now resume from previously stopped position
instead of playing from start, as it was in original game.
Fixes #965
This commit is contained in:
Ivan Savenko
2022-11-13 14:05:51 +02:00
parent c5cf0e4086
commit 4af9bc2461
9 changed files with 59 additions and 32 deletions

View File

@@ -115,7 +115,7 @@ void CMenuScreen::show(SDL_Surface * to)
void CMenuScreen::activate()
{
CCS->musich->playMusic("Music/MainMenu", true);
CCS->musich->playMusic("Music/MainMenu", true, true);
if(!config["video"].isNull())
CCS->videoh->open(config["video"]["name"].String());
CIntObject::activate();