allow IdleTimeoutSeconds in CoinMode_Pay (remove special case)

This commit is contained in:
Chris Danford
2008-06-21 06:44:39 +00:00
parent 969abd5293
commit c7e2b57b5f
+5 -9
View File
@@ -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;
}
}