From 6035ff65ed9d594437095cd6409d9ed0853ddf0d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 25 Apr 2007 01:16:04 +0000 Subject: [PATCH] simplify --- stepmania/src/GameState.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 1d482fcac7..98209d507d 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -949,15 +949,7 @@ Stage GameState::GetCurrentStage() const // Return true if it's possible for GetCurrentStage() to return the given stage. bool GameState::IsStagePossible( Stage s ) const { - /* HACK: Find out what the stage would be without long or marathon. - * 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; + return s == GAMESTATE->GetCurrentStage(); } int GameState::GetCourseSongIndex() const