add clearcredits
This commit is contained in:
@@ -62,6 +62,7 @@ void GameCommand::Init()
|
||||
m_sUrl = "";
|
||||
|
||||
m_bInsertCredit = false;
|
||||
m_bClearCredits = false;
|
||||
m_bStopMusic = false;
|
||||
m_bApplyDefaultOptions = false;
|
||||
}
|
||||
@@ -374,6 +375,11 @@ void GameCommand::LoadOne( const Command& cmd )
|
||||
m_bInsertCredit = true;
|
||||
}
|
||||
|
||||
else if( sName == "clearcredits" )
|
||||
{
|
||||
m_bClearCredits = true;
|
||||
}
|
||||
|
||||
else if( sName == "stopmusic" )
|
||||
{
|
||||
m_bStopMusic = true;
|
||||
@@ -754,6 +760,10 @@ void GameCommand::ApplySelf( const vector<PlayerNumber> &vpns ) const
|
||||
{
|
||||
StepMania::InsertCredit();
|
||||
}
|
||||
|
||||
if( m_bClearCredits )
|
||||
StepMania::ClearCredits();
|
||||
|
||||
if( m_bApplyDefaultOptions )
|
||||
{
|
||||
// applying options affects only the current stage
|
||||
|
||||
Reference in New Issue
Block a user