simplify
This commit is contained in:
@@ -949,15 +949,7 @@ Stage GameState::GetCurrentStage() const
|
|||||||
// Return true if it's possible for GetCurrentStage() to return the given stage.
|
// Return true if it's possible for GetCurrentStage() to return the given stage.
|
||||||
bool GameState::IsStagePossible( Stage s ) const
|
bool GameState::IsStagePossible( Stage s ) const
|
||||||
{
|
{
|
||||||
/* HACK: Find out what the stage would be without long or marathon.
|
return s == GAMESTATE->GetCurrentStage();
|
||||||
* This should never change during a screen. */
|
|
||||||
Song *pSong = m_pCurSong;
|
|
||||||
// XXX: Using GAMESTATE to get around const is potentially dangerous.
|
|
||||||
GAMESTATE->m_pCurSong.SetWithoutBroadcast( NULL );
|
|
||||||
Stage actual = GAMESTATE->GetCurrentStage();
|
|
||||||
GAMESTATE->m_pCurSong.SetWithoutBroadcast( pSong );
|
|
||||||
|
|
||||||
return s == actual;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int GameState::GetCourseSongIndex() const
|
int GameState::GetCourseSongIndex() const
|
||||||
|
|||||||
Reference in New Issue
Block a user