fix undeclared function and typo (seriously, please at least try to compile your code before committing)
This commit is contained in:
@@ -275,7 +275,7 @@ bool CourseLoaderCRS::LoadFromMsd( const RString &sPath, const MsdFile &msd, Cou
|
||||
new_entry.stepsCriteria.m_difficulty = OldStyleStringToDifficulty( sParams[2] );
|
||||
//most CRS files use old-style difficulties, but Difficulty enum values can be used in SM5. Test for those too.
|
||||
if( new_entry.stepsCriteria.m_difficulty == Difficulty_Invalid )
|
||||
new_entry.stepsCriteria.m_difficulty = StringToDifficulty( sParamsp2] );
|
||||
new_entry.stepsCriteria.m_difficulty = StringToDifficulty( sParams[2] );
|
||||
if( new_entry.stepsCriteria.m_difficulty == Difficulty_Invalid )
|
||||
{
|
||||
int retval = sscanf( sParams[2], "%d..%d", &new_entry.stepsCriteria.m_iLowMeter, &new_entry.stepsCriteria.m_iHighMeter );
|
||||
|
||||
@@ -22,6 +22,8 @@ const RString& DifficultyToString( Difficulty dc );
|
||||
Difficulty StringToDifficulty( const RString& sDC );
|
||||
LuaDeclareType( Difficulty );
|
||||
|
||||
Difficulty OldStyleStringToDifficulty( const RString& sDC ); // compatibility
|
||||
|
||||
typedef Difficulty CourseDifficulty;
|
||||
const int NUM_CourseDifficulty = NUM_Difficulty;
|
||||
/** @brief Loop through the shown course difficulties. */
|
||||
|
||||
Reference in New Issue
Block a user