more enum standardization

This commit is contained in:
Glenn Maynard
2006-10-07 04:39:48 +00:00
parent 2ce839e4eb
commit de6ca466d2
43 changed files with 110 additions and 108 deletions
+3 -3
View File
@@ -174,7 +174,7 @@ bool UnlockManager::ModifierIsLocked( const RString &sOneMod ) const
const UnlockEntry *UnlockManager::FindSong( const Song *pSong ) const
{
FOREACH_CONST( UnlockEntry, m_UnlockEntries, e )
if( e->m_pSong == pSong && e->m_dc == DIFFICULTY_Invalid )
if( e->m_pSong == pSong && e->m_dc == Difficulty_Invalid )
return &(*e);
return NULL;
}
@@ -294,7 +294,7 @@ bool UnlockEntry::IsValid() const
return m_pSong != NULL;
case UnlockRewardType_Steps:
return m_pSong != NULL && m_dc != DIFFICULTY_Invalid;
return m_pSong != NULL && m_dc != Difficulty_Invalid;
case UnlockRewardType_Course:
return m_pCourse != NULL;
@@ -578,7 +578,7 @@ void UnlockManager::UpdateCachedPointers()
}
e->m_dc = StringToDifficulty( e->m_cmd.GetArg(2) );
if( e->m_dc == DIFFICULTY_Invalid )
if( e->m_dc == Difficulty_Invalid )
{
LOG->Warn( "Unlock: Invalid difficulty \"%s\"", e->m_cmd.GetArg(2).s.c_str() );
break;