revert last: StringToDifficulty is intentional

This commit is contained in:
Chris Danford
2008-11-28 21:10:41 +00:00
parent cba41f9d56
commit 83c0aec94a
8 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -192,7 +192,7 @@ void GameCommand::LoadOne( const Command& cmd )
else if( sName == "difficulty" )
{
Difficulty dc = BackwardCompatibleStringToDifficulty( sValue );
Difficulty dc = StringToDifficulty( sValue );
if( dc != Difficulty_Invalid )
m_dc = dc;
else
@@ -261,7 +261,7 @@ void GameCommand::LoadOne( const Command& cmd )
if( pSong == NULL || pStyle == NULL )
RageException::Throw( "Must set Song and Style to set Steps." );
Difficulty dc = BackwardCompatibleStringToDifficulty( sSteps );
Difficulty dc = StringToDifficulty( sSteps );
if( dc != Difficulty_Edit )
m_pSteps = SongUtil::GetStepsByDifficulty( pSong, pStyle->m_StepsType, dc );
else
@@ -296,7 +296,7 @@ void GameCommand::LoadOne( const Command& cmd )
if( pCourse == NULL || pStyle == NULL )
RageException::Throw( "Must set Course and Style to set Steps." );
const CourseDifficulty cd = BackwardCompatibleStringToDifficulty( sTrail );
const CourseDifficulty cd = StringToDifficulty( sTrail );
ASSERT_M( cd != Difficulty_Invalid, ssprintf("Invalid difficulty '%s'", sTrail.c_str()) );
m_pTrail = pCourse->GetTrail( pStyle->m_StepsType, cd );