From c7e2b57b5f0962aff8b55cb6deb9978e8e8e7283 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 21 Jun 2008 06:44:39 +0000 Subject: [PATCH] allow IdleTimeoutSeconds in CoinMode_Pay (remove special case) --- stepmania/src/ScreenSelect.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/stepmania/src/ScreenSelect.cpp b/stepmania/src/ScreenSelect.cpp index ead4c7658b..40ce72871b 100644 --- a/stepmania/src/ScreenSelect.cpp +++ b/stepmania/src/ScreenSelect.cpp @@ -83,16 +83,12 @@ void ScreenSelect::Update( float fDelta ) SOUND->PlayOnceFromAnnouncer( m_sName+" IdleComment" ); m_timerIdleComment.GetDeltaTime(); } - // don't time out on this screen is coin mode is pay. - // If we're here, then there's a credit in the machine. - if( GAMESTATE->GetCoinMode() != CoinMode_Pay ) + + if( IDLE_TIMEOUT_SECONDS > 0 && m_timerIdleTimeout.PeekDeltaTime() >= IDLE_TIMEOUT_SECONDS ) { - if( IDLE_TIMEOUT_SECONDS > 0 && m_timerIdleTimeout.PeekDeltaTime() >= IDLE_TIMEOUT_SECONDS ) - { - SCREENMAN->SetNewScreen( IDLE_TIMEOUT_SCREEN ); - m_timerIdleTimeout.GetDeltaTime(); - return; - } + SCREENMAN->SetNewScreen( IDLE_TIMEOUT_SCREEN ); + m_timerIdleTimeout.GetDeltaTime(); + return; } }