add traces

This commit is contained in:
Glenn Maynard
2003-10-18 21:01:04 +00:00
parent 9a091f5aec
commit 4329c3fbef
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -99,6 +99,7 @@ void ScreenAttract::AttractInput( const DeviceInput& DeviceI, const InputEventTy
switch( PREFSMAN->m_iCoinMode )
{
case COIN_PAY:
LOG->Trace("ScreenAttract::AttractInput: COIN_PAY (%i/%i)", GAMESTATE->m_iCoins, PREFSMAN->m_iCoinsPerCredit );
if( GAMESTATE->m_iCoins < PREFSMAN->m_iCoinsPerCredit )
break; // don't fall through
// fall through
@@ -109,6 +110,7 @@ void ScreenAttract::AttractInput( const DeviceInput& DeviceI, const InputEventTy
if( MenuI.button != MENU_BUTTON_COIN )
SOUND->PlayOnce( THEME->GetPathToS("Common coin") );
SDL_Delay( 800 ); // do a little pause, like the arcade does
LOG->Trace("ScreenAttract::AttractInput: go to ScreenTitleMenu" );
SCREENMAN->SetNewScreen( "ScreenTitleMenu" );
break;
default: