add "stopmusic"

This commit is contained in:
Glenn Maynard
2004-12-30 01:17:52 +00:00
parent 63364e5dcc
commit b6fe2c3bae
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -54,6 +54,7 @@ void GameCommand::Init()
m_bDownloadMachineStats = false;
m_bInsertCredit = false;
m_bResetToFactoryDefaults = false;
m_bStopMusic = false;
}
bool CompareSongOptions( const SongOptions &so1, const SongOptions &so2 );
@@ -279,6 +280,10 @@ void GameCommand::Load( int iIndex, const Commands& cmds )
{
m_bResetToFactoryDefaults = true;
}
else if( sName == "stopmusic" )
{
m_bStopMusic = true;
}
else
{
@@ -561,6 +566,8 @@ void GameCommand::Apply( PlayerNumber pn ) const
UNLOCKMAN->UnlockCode( m_iUnlockIndex );
if( m_sSoundPath != "" )
SOUND->PlayOnce( THEME->GetPathToS( m_sSoundPath ) );
if( m_bStopMusic )
SOUND->StopMusic();
FOREACH_CONST( CString, m_vsScreensToPrepare, s )
SCREENMAN->PrepareScreen( *s );
if( m_bDeletePreparedScreens )