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() )
|
if( !IsFinalStage() && !IsExtraStage() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
bool bOnePassed = false;
|
|
||||||
|
|
||||||
FOREACH_EnabledPlayer( pn )
|
FOREACH_EnabledPlayer( pn )
|
||||||
{
|
{
|
||||||
if( m_pCurSteps[pn]->GetDifficulty() != Difficulty_Hard &&
|
if( m_pCurSteps[pn]->GetDifficulty() != Difficulty_Hard &&
|
||||||
@@ -1206,28 +1204,12 @@ bool GameState::HasEarnedExtraStage() const
|
|||||||
if( (IsExtraStage() && STATSMAN->m_CurStageStats.m_player[pn].GetGrade() <= GRADE_TIER_FOR_EXTRA_1) ||
|
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) )
|
(IsExtraStage2() && STATSMAN->m_CurStageStats.m_player[pn].GetGrade() <= GRADE_TIER_FOR_EXTRA_2) )
|
||||||
{
|
{
|
||||||
bOnePassed = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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 true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
PlayerNumber GameState::GetBestPlayer() const
|
PlayerNumber GameState::GetBestPlayer() const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ void MusicWheel::BeginScreen()
|
|||||||
|
|
||||||
WheelBase::BeginScreen();
|
WheelBase::BeginScreen();
|
||||||
|
|
||||||
if( (GAMESTATE->IsExtraStage() && !PREFSMAN->m_bPickExtraStage) || GAMESTATE->IsExtraStage2() )
|
if( GAMESTATE->IsExtraStage() || GAMESTATE->IsExtraStage2() )
|
||||||
{
|
{
|
||||||
m_WheelState = STATE_LOCKED;
|
m_WheelState = STATE_LOCKED;
|
||||||
SCREENMAN->PlayStartSound();
|
SCREENMAN->PlayStartSound();
|
||||||
|
|||||||
@@ -189,7 +189,6 @@ PrefsManager::PrefsManager() :
|
|||||||
m_iCoinsPerCredit ( "CoinsPerCredit", 1 ),
|
m_iCoinsPerCredit ( "CoinsPerCredit", 1 ),
|
||||||
m_iSongsPerPlay ( "SongsPerPlay", 3, ValidateSongsPerPlay ),
|
m_iSongsPerPlay ( "SongsPerPlay", 3, ValidateSongsPerPlay ),
|
||||||
m_bDelayedCreditsReconcile ( "DelayedCreditsReconcile", false ),
|
m_bDelayedCreditsReconcile ( "DelayedCreditsReconcile", false ),
|
||||||
m_bPickExtraStage ( "PickExtraStage", false ),
|
|
||||||
m_bComboContinuesBetweenSongs ( "ComboContinuesBetweenSongs", false ),
|
m_bComboContinuesBetweenSongs ( "ComboContinuesBetweenSongs", false ),
|
||||||
m_ShowSongOptions ( "ShowSongOptions", Maybe_YES ),
|
m_ShowSongOptions ( "ShowSongOptions", Maybe_YES ),
|
||||||
m_bDancePointsForOni ( "DancePointsForOni", false ),
|
m_bDancePointsForOni ( "DancePointsForOni", false ),
|
||||||
|
|||||||
@@ -151,7 +151,6 @@ public:
|
|||||||
Preference<int> m_iCoinsPerCredit;
|
Preference<int> m_iCoinsPerCredit;
|
||||||
Preference<int> m_iSongsPerPlay;
|
Preference<int> m_iSongsPerPlay;
|
||||||
Preference<bool> m_bDelayedCreditsReconcile;
|
Preference<bool> m_bDelayedCreditsReconcile;
|
||||||
Preference<bool> m_bPickExtraStage;
|
|
||||||
Preference<bool> m_bComboContinuesBetweenSongs;
|
Preference<bool> m_bComboContinuesBetweenSongs;
|
||||||
Preference<Maybe> m_ShowSongOptions;
|
Preference<Maybe> m_ShowSongOptions;
|
||||||
Preference<bool> m_bDancePointsForOni;
|
Preference<bool> m_bDancePointsForOni;
|
||||||
|
|||||||
@@ -581,7 +581,7 @@ bool ScreenSelectMusic::DetectCodes( const InputEventPlus &input )
|
|||||||
}
|
}
|
||||||
else if( CodeDetector::EnteredNextSort(input.GameI.controller) )
|
else if( CodeDetector::EnteredNextSort(input.GameI.controller) )
|
||||||
{
|
{
|
||||||
if( ( GAMESTATE->IsExtraStage() && !PREFSMAN->m_bPickExtraStage ) || GAMESTATE->IsExtraStage2() )
|
if( GAMESTATE->IsExtraStage() || GAMESTATE->IsExtraStage2() )
|
||||||
m_soundLocked.Play();
|
m_soundLocked.Play();
|
||||||
else
|
else
|
||||||
m_MusicWheel.NextSort();
|
m_MusicWheel.NextSort();
|
||||||
@@ -781,7 +781,7 @@ void ScreenSelectMusic::MenuStart( const InputEventPlus &input )
|
|||||||
bIsRepeat = true;
|
bIsRepeat = true;
|
||||||
|
|
||||||
/* Don't complain about repeats if the user didn't get to pick. */
|
/* Don't complain about repeats if the user didn't get to pick. */
|
||||||
if( GAMESTATE->IsExtraStage() && !PREFSMAN->m_bPickExtraStage )
|
if( GAMESTATE->IsAnExtraStage() )
|
||||||
bIsRepeat = false;
|
bIsRepeat = false;
|
||||||
|
|
||||||
if( bIsRepeat )
|
if( bIsRepeat )
|
||||||
|
|||||||
Reference in New Issue
Block a user