whitespace killa, remove some temporary test code (I assume)
This commit is contained in:
@@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
REGISTER_SCREEN_CLASS( ScreenOptionsManageCourses );
|
REGISTER_SCREEN_CLASS( ScreenOptionsManageCourses );
|
||||||
|
|
||||||
|
|
||||||
struct StepsTypeAndDifficulty
|
struct StepsTypeAndDifficulty
|
||||||
{
|
{
|
||||||
StepsType st;
|
StepsType st;
|
||||||
@@ -50,8 +49,6 @@ static void SetNextCombination()
|
|||||||
|
|
||||||
GAMESTATE->m_stEdit.Set( curVal.st );
|
GAMESTATE->m_stEdit.Set( curVal.st );
|
||||||
GAMESTATE->m_cdEdit.Set( curVal.cd );
|
GAMESTATE->m_cdEdit.Set( curVal.cd );
|
||||||
// XXX Testing.
|
|
||||||
SCREENMAN->SystemMessage( ssprintf("%s, %s", GAMEMAN->GetStepsTypeInfo(curVal.st).szName, DifficultyToString(curVal.cd).c_str()) );
|
|
||||||
|
|
||||||
EditCourseUtil::UpdateAndSetTrail();
|
EditCourseUtil::UpdateAndSetTrail();
|
||||||
}
|
}
|
||||||
@@ -75,15 +72,14 @@ void ScreenOptionsManageCourses::BeginScreen()
|
|||||||
const Style *pStyle = vpStyles[0];
|
const Style *pStyle = vpStyles[0];
|
||||||
GAMESTATE->SetCurrentStyle( pStyle );
|
GAMESTATE->SetCurrentStyle( pStyle );
|
||||||
|
|
||||||
|
|
||||||
if( GAMESTATE->m_stEdit == StepsType_Invalid ||
|
if( GAMESTATE->m_stEdit == StepsType_Invalid ||
|
||||||
GAMESTATE->m_cdEdit == Difficulty_Invalid )
|
GAMESTATE->m_cdEdit == Difficulty_Invalid )
|
||||||
{
|
{
|
||||||
SetNextCombination();
|
SetNextCombination();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remember the current course. All Course pointers will be invalidated when
|
||||||
// Remember the current course. All Course pointers will be invalidated when we load the machine profile below.
|
// we load the machine profile below.
|
||||||
CourseID cidLast;
|
CourseID cidLast;
|
||||||
cidLast.FromCourse( GAMESTATE->m_pCurCourse );
|
cidLast.FromCourse( GAMESTATE->m_pCurCourse );
|
||||||
|
|
||||||
@@ -172,12 +168,12 @@ void ScreenOptionsManageCourses::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
EditCourseUtil::UpdateAndSetTrail();
|
EditCourseUtil::UpdateAndSetTrail();
|
||||||
|
|
||||||
SCREENMAN->SetNewScreen( CREATE_NEW_SCREEN );
|
SCREENMAN->SetNewScreen( CREATE_NEW_SCREEN );
|
||||||
return; // don't call base
|
return; // don't call base
|
||||||
}
|
}
|
||||||
else if( m_pRows[iCurRow]->GetRowType() == OptionRow::RowType_Exit )
|
else if( m_pRows[iCurRow]->GetRowType() == OptionRow::RowType_Exit )
|
||||||
{
|
{
|
||||||
this->HandleScreenMessage( SM_GoToPrevScreen );
|
this->HandleScreenMessage( SM_GoToPrevScreen );
|
||||||
return; // don't call base
|
return; // don't call base
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -213,7 +209,6 @@ void ScreenOptionsManageCourses::MenuSelect( const InputEventPlus &input )
|
|||||||
return;
|
return;
|
||||||
SetNextCombination();
|
SetNextCombination();
|
||||||
m_soundDifficultyChanged.Play();
|
m_soundDifficultyChanged.Play();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static LocalizedString YOU_HAVE_MAX( "ScreenOptionsManageCourses", "You have %d, the maximum number allowed." );
|
static LocalizedString YOU_HAVE_MAX( "ScreenOptionsManageCourses", "You have %d, the maximum number allowed." );
|
||||||
|
|||||||
Reference in New Issue
Block a user