holding a button while over a mine makes it explode

This commit is contained in:
Chris Danford
2003-08-31 22:39:05 +00:00
parent 8a78faf552
commit 16ff95773d
+14
View File
@@ -746,6 +746,20 @@ void PlayerMinus::CrossedRow( int iNoteRow )
if( GetTapNoteScore(t, iNoteRow) == TNS_NONE )
Step( t, now );
}
// Hold the panel while crossing a mine will cause the mine to explode
for( int t=0; t<GetNumTracks(); t++ )
{
if( GetTapNote(t, iNoteRow) == TAP_MINE )
{
const StyleInput StyleI( m_PlayerNumber, t );
const GameInput GameI = GAMESTATE->GetCurrentStyleDef()->StyleInputToGameInput( StyleI );
bool bIsHoldingButton = INPUTMAPPER->IsButtonDown( GameI );
if( bIsHoldingButton )
Step( t, now );
}
}
}
void PlayerMinus::RandomiseNotes( int iNoteRow )