cleanup options comparison

This commit is contained in:
Chris Danford
2004-01-11 04:33:21 +00:00
parent 1d7983cdaa
commit 2767e78218
5 changed files with 13 additions and 15 deletions
+2 -3
View File
@@ -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;
}