From 833a712e454a06807675d26724b0ecdc318df9a1 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Tue, 29 May 2007 18:07:54 +0000 Subject: [PATCH] fix IsExtraStage returning true in ScreenHowToPlay --- stepmania/src/GameState.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stepmania/src/GameState.cpp b/stepmania/src/GameState.cpp index 950eb80a80..1ca2d2deed 100644 --- a/stepmania/src/GameState.cpp +++ b/stepmania/src/GameState.cpp @@ -885,16 +885,22 @@ int GameState::GetSmallestNumStagesLeftForAnyHumanPlayer() const bool GameState::IsAnExtraStage() const { + if( m_MasterPlayerNumber == PlayerNumber_Invalid ) + return false; return !IsEventMode() && !IsCourseMode() && m_iAwardedExtraStages[m_MasterPlayerNumber] > 0; } bool GameState::IsExtraStage() const { + if( m_MasterPlayerNumber == PlayerNumber_Invalid ) + return false; return !IsEventMode() && !IsCourseMode() && m_iAwardedExtraStages[m_MasterPlayerNumber] == 1; } bool GameState::IsExtraStage2() const { + if( m_MasterPlayerNumber == PlayerNumber_Invalid ) + return false; return !IsEventMode() && !IsCourseMode() && m_iAwardedExtraStages[m_MasterPlayerNumber] == 2; }