fc3d177: Fix GAMESTATE:GetCurrentSteps() only returning single-player steps for any difficulty [vyhd]
This commit is contained in:
+4
-2
@@ -2169,11 +2169,13 @@ public:
|
|||||||
|
|
||||||
if( p->m_pCurSong.Get() != NULL )
|
if( p->m_pCurSong.Get() != NULL )
|
||||||
{
|
{
|
||||||
// try with the player's current steps first, since they're likely the correct ones.
|
// try our preferred steps type and difficulty first
|
||||||
pSteps = p->m_pCurSteps[pn];
|
pSteps = SongUtil::GetOneSteps( p->m_pCurSong.Get(), GAMESTATE->m_PreferredStepsType, GAMESTATE->m_PreferredDifficulty[pn] );
|
||||||
|
|
||||||
|
// no matches for preferred stepstype? try the current style
|
||||||
if( pSteps == NULL )
|
if( pSteps == NULL )
|
||||||
pSteps = SongUtil::GetOneSteps( p->m_pCurSong.Get(), GAMESTATE->GetCurrentStyle()->m_StepsType, GAMESTATE->m_PreferredDifficulty[pn] );
|
pSteps = SongUtil::GetOneSteps( p->m_pCurSong.Get(), GAMESTATE->GetCurrentStyle()->m_StepsType, GAMESTATE->m_PreferredDifficulty[pn] );
|
||||||
|
|
||||||
// nothing found with preferred difficulty? try with closest.
|
// nothing found with preferred difficulty? try with closest.
|
||||||
// closest seems to return 'easy' when prefrred difficulty is 'medium'
|
// closest seems to return 'easy' when prefrred difficulty is 'medium'
|
||||||
// even if the song has medium steps?
|
// even if the song has medium steps?
|
||||||
|
|||||||
Reference in New Issue
Block a user