add traces
This commit is contained in:
@@ -99,6 +99,7 @@ void ScreenAttract::AttractInput( const DeviceInput& DeviceI, const InputEventTy
|
|||||||
switch( PREFSMAN->m_iCoinMode )
|
switch( PREFSMAN->m_iCoinMode )
|
||||||
{
|
{
|
||||||
case COIN_PAY:
|
case COIN_PAY:
|
||||||
|
LOG->Trace("ScreenAttract::AttractInput: COIN_PAY (%i/%i)", GAMESTATE->m_iCoins, PREFSMAN->m_iCoinsPerCredit );
|
||||||
if( GAMESTATE->m_iCoins < PREFSMAN->m_iCoinsPerCredit )
|
if( GAMESTATE->m_iCoins < PREFSMAN->m_iCoinsPerCredit )
|
||||||
break; // don't fall through
|
break; // don't fall through
|
||||||
// fall through
|
// fall through
|
||||||
@@ -109,6 +110,7 @@ void ScreenAttract::AttractInput( const DeviceInput& DeviceI, const InputEventTy
|
|||||||
if( MenuI.button != MENU_BUTTON_COIN )
|
if( MenuI.button != MENU_BUTTON_COIN )
|
||||||
SOUND->PlayOnce( THEME->GetPathToS("Common coin") );
|
SOUND->PlayOnce( THEME->GetPathToS("Common coin") );
|
||||||
SDL_Delay( 800 ); // do a little pause, like the arcade does
|
SDL_Delay( 800 ); // do a little pause, like the arcade does
|
||||||
|
LOG->Trace("ScreenAttract::AttractInput: go to ScreenTitleMenu" );
|
||||||
SCREENMAN->SetNewScreen( "ScreenTitleMenu" );
|
SCREENMAN->SetNewScreen( "ScreenTitleMenu" );
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -957,8 +957,13 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam
|
|||||||
case MENU_BUTTON_COIN:
|
case MENU_BUTTON_COIN:
|
||||||
/* Handle a coin insertion. */
|
/* Handle a coin insertion. */
|
||||||
if( GAMESTATE->m_bEditing ) // no coins while editing
|
if( GAMESTATE->m_bEditing ) // no coins while editing
|
||||||
|
{
|
||||||
|
LOG->Trace( "Ignored coin insertion (editing)" );
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
GAMESTATE->m_iCoins++;
|
GAMESTATE->m_iCoins++;
|
||||||
|
LOG->Trace("%i coins inserted, %i needed to play", GAMESTATE->m_iCoins, PREFSMAN->m_iCoinsPerCredit);
|
||||||
BOOKKEEPER->CoinInserted();
|
BOOKKEEPER->CoinInserted();
|
||||||
SCREENMAN->RefreshCreditsMessages();
|
SCREENMAN->RefreshCreditsMessages();
|
||||||
SOUND->PlayOnce( THEME->GetPathToS("Common coin") );
|
SOUND->PlayOnce( THEME->GetPathToS("Common coin") );
|
||||||
|
|||||||
Reference in New Issue
Block a user