bugfix: start bg music at start if now own music is selected

This commit is contained in:
Alexander Eckart committed 2012-05-18 19:34:01 +02:00
1 parent 7f845d4179
commit 246ae0ef29
1 file changed
+14 -2
+14 -2
View File
@@ -142,6 +142,19 @@ namespace Vocaluxe.Screens
_SongLoaderThread.IsBackground = true;
_SongLoaderThread.Start();
_timer.Start();
if (CConfig.BackgroundMusic == EOffOn.TR_CONFIG_ON &&
CConfig.BackgroundMusicSource == EBackgroundMusicSource.TR_CONFIG_NO_OWN_MUSIC && !_BGMusicStartet)
{
CBackgroundMusic.AddOwnMusic();
if (!CBackgroundMusic.Playing)
CBackgroundMusic.Next();
_BGMusicStartet = true;
}
CBackgroundMusic.CanSing = false;
}
public override bool UpdateGame()
@@ -179,8 +192,7 @@ namespace Vocaluxe.Screens
_BGMusicStartet = true;
}
CBackgroundMusic.CanSing = false;
return true;
}