Skip to content

Commit

Permalink
fix inability to skip screeninit
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 10, 2017
1 parent 094453d commit d79a5e3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/ScreenAttract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,18 @@ bool ScreenAttract::AttractInput( const InputEventPlus &input, ScreenWithMenuEle
break;
// fall through
case GAME_BUTTON_START:
case GAME_BUTTON_COIN:
// If we're not in a game and there aren't enough credits to start,
// eat the input and do nothing.
if( pScreen->IsTransitioning() )
return false;

// HandleGlobalInputs() already played the coin sound. Don't play it again.
if( input.MenuI != GAME_BUTTON_COIN )
SCREENMAN->PlayStartSound();

pScreen->Cancel( SM_GoToStartScreen );
return true;
default: break;
}

Expand Down

0 comments on commit d79a5e3

Please sign in to comment.