remove m_bPickExtraStage, use false behavior. Extra stage stuff is way too complicated for too many niche cases.
This commit is contained in:
@@ -1195,8 +1195,6 @@ bool GameState::HasEarnedExtraStage() const
|
||||
if( !IsFinalStage() && !IsExtraStage() )
|
||||
return false;
|
||||
|
||||
bool bOnePassed = false;
|
||||
|
||||
FOREACH_EnabledPlayer( pn )
|
||||
{
|
||||
if( m_pCurSteps[pn]->GetDifficulty() != Difficulty_Hard &&
|
||||
@@ -1206,27 +1204,11 @@ bool GameState::HasEarnedExtraStage() const
|
||||
if( (IsExtraStage() && STATSMAN->m_CurStageStats.m_player[pn].GetGrade() <= GRADE_TIER_FOR_EXTRA_1) ||
|
||||
(IsExtraStage2() && STATSMAN->m_CurStageStats.m_player[pn].GetGrade() <= GRADE_TIER_FOR_EXTRA_2) )
|
||||
{
|
||||
bOnePassed = true;
|
||||
break;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if( !bOnePassed )
|
||||
return false;
|
||||
|
||||
/* If PickExtraStage, allow EX2 if the chosen song was correct. */
|
||||
if( PREFSMAN->m_bPickExtraStage && IsExtraStage2() )
|
||||
{
|
||||
Song* pSong;
|
||||
Steps* pSteps;
|
||||
SONGMAN->GetExtraStageInfo( false, GetCurrentStyle(), pSong, pSteps );
|
||||
ASSERT(pSong);
|
||||
|
||||
const StageStats &stats = STATSMAN->m_CurStageStats;
|
||||
return stats.m_vpPlayedSongs.size() && stats.m_vpPlayedSongs.back() == pSong;
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
PlayerNumber GameState::GetBestPlayer() const
|
||||
|
||||
@@ -127,7 +127,7 @@ void MusicWheel::BeginScreen()
|
||||
|
||||
WheelBase::BeginScreen();
|
||||
|
||||
if( (GAMESTATE->IsExtraStage() && !PREFSMAN->m_bPickExtraStage) || GAMESTATE->IsExtraStage2() )
|
||||
if( GAMESTATE->IsExtraStage() || GAMESTATE->IsExtraStage2() )
|
||||
{
|
||||
m_WheelState = STATE_LOCKED;
|
||||
SCREENMAN->PlayStartSound();
|
||||
|
||||
@@ -189,7 +189,6 @@ PrefsManager::PrefsManager() :
|
||||
m_iCoinsPerCredit ( "CoinsPerCredit", 1 ),
|
||||
m_iSongsPerPlay ( "SongsPerPlay", 3, ValidateSongsPerPlay ),
|
||||
m_bDelayedCreditsReconcile ( "DelayedCreditsReconcile", false ),
|
||||
m_bPickExtraStage ( "PickExtraStage", false ),
|
||||
m_bComboContinuesBetweenSongs ( "ComboContinuesBetweenSongs", false ),
|
||||
m_ShowSongOptions ( "ShowSongOptions", Maybe_YES ),
|
||||
m_bDancePointsForOni ( "DancePointsForOni", false ),
|
||||
|
||||
@@ -151,7 +151,6 @@ public:
|
||||
Preference<int> m_iCoinsPerCredit;
|
||||
Preference<int> m_iSongsPerPlay;
|
||||
Preference<bool> m_bDelayedCreditsReconcile;
|
||||
Preference<bool> m_bPickExtraStage;
|
||||
Preference<bool> m_bComboContinuesBetweenSongs;
|
||||
Preference<Maybe> m_ShowSongOptions;
|
||||
Preference<bool> m_bDancePointsForOni;
|
||||
|
||||
@@ -581,7 +581,7 @@ bool ScreenSelectMusic::DetectCodes( const InputEventPlus &input )
|
||||
}
|
||||
else if( CodeDetector::EnteredNextSort(input.GameI.controller) )
|
||||
{
|
||||
if( ( GAMESTATE->IsExtraStage() && !PREFSMAN->m_bPickExtraStage ) || GAMESTATE->IsExtraStage2() )
|
||||
if( GAMESTATE->IsExtraStage() || GAMESTATE->IsExtraStage2() )
|
||||
m_soundLocked.Play();
|
||||
else
|
||||
m_MusicWheel.NextSort();
|
||||
@@ -781,7 +781,7 @@ void ScreenSelectMusic::MenuStart( const InputEventPlus &input )
|
||||
bIsRepeat = true;
|
||||
|
||||
/* Don't complain about repeats if the user didn't get to pick. */
|
||||
if( GAMESTATE->IsExtraStage() && !PREFSMAN->m_bPickExtraStage )
|
||||
if( GAMESTATE->IsAnExtraStage() )
|
||||
bIsRepeat = false;
|
||||
|
||||
if( bIsRepeat )
|
||||
|
||||
Reference in New Issue
Block a user