we have music for keyed songs, even if we have no BGM track

This commit is contained in:
Glenn Maynard
2004-11-04 00:03:51 +00:00
parent 0322d5d447
commit feae525a63
+9 -1
View File
@@ -1174,7 +1174,15 @@ bool Song::RouletteDisplayed() const { if(IsTutorial()) return false; return Get
bool Song::ShowInDemonstrationAndRanking() const { return !IsTutorial() && NormallyDisplayed(); }
bool Song::HasMusic() const {return m_sMusicFile != "" && IsAFile(GetMusicPath()); }
/* Hack: see Song::TidyUpData comments. */
bool Song::HasMusic() const
{
/* If we have keys, we always have music. */
if( m_vsKeysoundFile.size() != 0 )
return true;
return m_sMusicFile != "" && IsAFile(GetMusicPath());
}
bool Song::HasBanner() const {return m_sBannerFile != "" && IsAFile(GetBannerPath()); }
bool Song::HasLyrics() const {return m_sLyricsFile != "" && IsAFile(GetLyricsPath()); }
bool Song::HasBackground() const {return m_sBackgroundFile != "" && IsAFile(GetBackgroundPath()); }