Add ComparePlayerOptions and CompareSongOptions.

Fix "c200" never parsing.
This commit is contained in:
Glenn Maynard
2003-09-27 19:23:15 +00:00
parent 09897c0241
commit 048828e544
2 changed files with 48 additions and 1 deletions
+16
View File
@@ -114,3 +114,19 @@ void SongOptions::FromString( CString sOptions )
else if( sBit == "savescore" ) m_bSaveScore = on;
}
}
bool CompareSongOptions( const SongOptions &so1, const SongOptions &so2 )
{
#define COMPARE(x) { if( so1.x != so2.x ) return false; }
COMPARE( m_LifeType );
COMPARE( m_DrainType );
COMPARE( m_iBatteryLives );
COMPARE( m_FailType );
COMPARE( m_fMusicRate );
COMPARE( m_bAssistTick );
COMPARE( m_bAutoSync );
COMPARE( m_bSaveScore );
#undef COMPARE
return true;
}