Add FailAtEnd, which means "check failure only at the very

end of the song" (intended for use with "PassMark", which
needs a better name).  This isn't called "FailEndOfSong" to
avoid confusion, and was the prompting for renaming
FailEndOfSong.)
This commit is contained in:
Glenn Maynard
2006-11-09 09:09:40 +00:00
parent f20ce1377b
commit 08bf61191d
4 changed files with 9 additions and 4 deletions
+2
View File
@@ -61,6 +61,7 @@ void SongOptions::GetMods( vector<RString> &AddTo ) const
{
case FAIL_IMMEDIATE: break;
case FAIL_IMMEDIATE_CONTINUE: AddTo.push_back("FailImmediateContinue"); break;
case FAIL_AT_END: AddTo.push_back("FailAtEnd"); break;
case FAIL_OFF: AddTo.push_back("FailOff"); break;
default: ASSERT(0);
}
@@ -154,6 +155,7 @@ void SongOptions::FromString( const RString &sOptions )
sBit == "failimmediate" ) m_FailType = FAIL_IMMEDIATE;
else if( sBit == "failendofsong" ||
sBit == "failimmediatecontinue" ) m_FailType = FAIL_IMMEDIATE_CONTINUE;
else if( sBit == "failatend" ) m_FailType = FAIL_AT_END;
else if( sBit == "failoff" ) m_FailType = FAIL_OFF;
else if( sBit == "faildefault" )