diff --git a/stepmania/src/Screen.cpp b/stepmania/src/Screen.cpp index b51eae2af3..c87d989ad5 100644 --- a/stepmania/src/Screen.cpp +++ b/stepmania/src/Screen.cpp @@ -40,6 +40,8 @@ void Screen::Init() { ALLOW_OPERATOR_MENU_BUTTON.Load( m_sName, "AllowOperatorMenuButton" ); + m_fLockInputSecs = 0; + SetFOV( 0 ); m_smSendOnPop = SM_None; @@ -79,6 +81,8 @@ void Screen::BeginScreen() void Screen::Update( float fDeltaTime ) { ActorFrame::Update( fDeltaTime ); + + m_fLockInputSecs = max( 0, m_fLockInputSecs-fDeltaTime ); /* * We need to ensure two things: diff --git a/stepmania/src/Screen.h b/stepmania/src/Screen.h index 6091708904..c8c720a0fa 100644 --- a/stepmania/src/Screen.h +++ b/stepmania/src/Screen.h @@ -82,6 +82,8 @@ protected: RString m_sNextScreen; ScreenMessage m_smSendOnPop; + float m_fLockInputSecs; + public: RString GetNextScreen() const; RString GetPrevScreen() const; diff --git a/stepmania/src/ScreenOptions.cpp b/stepmania/src/ScreenOptions.cpp index 7eecbe1c45..0d5b0eed5d 100644 --- a/stepmania/src/ScreenOptions.cpp +++ b/stepmania/src/ScreenOptions.cpp @@ -484,8 +484,6 @@ void ScreenOptions::Update( float fDeltaTime ) { //LOG->Trace( "ScreenOptions::Update(%f)", fDeltaTime ); - m_fLockInputSecs = max( 0, m_fLockInputSecs-fDeltaTime ); - ScreenWithMenuElements::Update( fDeltaTime ); } diff --git a/stepmania/src/ScreenOptions.h b/stepmania/src/ScreenOptions.h index 67997ed313..fd30062c27 100644 --- a/stepmania/src/ScreenOptions.h +++ b/stepmania/src/ScreenOptions.h @@ -103,7 +103,6 @@ protected: // derived classes need access to these int m_iFocusX[NUM_PLAYERS]; bool m_bWasOnExit[NUM_PLAYERS]; - float m_fLockInputSecs; // TRICKY: People hold Start to get to PlayerOptions, then // the repeat events cause them to zip to the bottom. So, ignore diff --git a/stepmania/src/ScreenSelectMaster.cpp b/stepmania/src/ScreenSelectMaster.cpp index 0c141d327f..18d65a5fec 100644 --- a/stepmania/src/ScreenSelectMaster.cpp +++ b/stepmania/src/ScreenSelectMaster.cpp @@ -27,7 +27,6 @@ ScreenSelectMaster::ScreenSelectMaster() { ZERO( m_iChoice ); ZERO( m_bChosen ); - m_fLockInputSecs = 0; } void ScreenSelectMaster::Init() @@ -274,7 +273,6 @@ void ScreenSelectMaster::BeginScreen() void ScreenSelectMaster::Update( float fDelta ) { ScreenSelect::Update( fDelta ); - m_fLockInputSecs = max( 0, m_fLockInputSecs-fDelta ); } void ScreenSelectMaster::HandleScreenMessage( const ScreenMessage SM ) diff --git a/stepmania/src/ScreenSelectMaster.h b/stepmania/src/ScreenSelectMaster.h index 0220e6b4ca..29b957f18a 100644 --- a/stepmania/src/ScreenSelectMaster.h +++ b/stepmania/src/ScreenSelectMaster.h @@ -91,7 +91,6 @@ protected: int m_iChoice[NUM_PLAYERS]; bool m_bChosen[NUM_PLAYERS]; - float m_fLockInputSecs; MenuInput m_TrackingRepeatingInput; };