cleanup options comparison
This commit is contained in:
@@ -126,9 +126,9 @@ void SongOptions::FromString( CString sOptions )
|
||||
}
|
||||
}
|
||||
|
||||
bool CompareSongOptions( const SongOptions &so1, const SongOptions &so2 )
|
||||
bool SongOptions::operator==( const SongOptions &other )
|
||||
{
|
||||
#define COMPARE(x) { if( so1.x != so2.x ) return false; }
|
||||
#define COMPARE(x) { if( x != other.x ) return false; }
|
||||
COMPARE( m_LifeType );
|
||||
COMPARE( m_DrainType );
|
||||
COMPARE( m_iBatteryLives );
|
||||
@@ -138,6 +138,5 @@ bool CompareSongOptions( const SongOptions &so1, const SongOptions &so2 )
|
||||
COMPARE( m_bAutoSync );
|
||||
COMPARE( m_bSaveScore );
|
||||
#undef COMPARE
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user