phase out StyleI.player

This commit is contained in:
Glenn Maynard
2006-09-13 00:16:23 +00:00
parent 5be4331e71
commit 6a80311172
8 changed files with 17 additions and 31 deletions
+2 -4
View File
@@ -886,8 +886,7 @@ void ScreenEdit::Update( float fDeltaTime )
{
for( int t=0; t<GAMESTATE->GetCurrentStyle()->m_iColsPerPlayer; t++ ) // for each track
{
StyleInput StyleI( PLAYER_1, t );
float fSecsHeld = INPUTMAPPER->GetSecsHeld( StyleI, PLAYER_1 );
float fSecsHeld = INPUTMAPPER->GetSecsHeld( t, PLAYER_1 );
fSecsHeld = min( fSecsHeld, m_RemoveNoteButtonLastChanged.Ago() );
if( fSecsHeld == 0 )
continue;
@@ -934,8 +933,7 @@ void ScreenEdit::Update( float fDeltaTime )
bool bButtonIsBeingPressed = false;
for( int t=0; t<GAMESTATE->GetCurrentStyle()->m_iColsPerPlayer; t++ ) // for each track
{
StyleInput StyleI( PLAYER_1, t );
if( INPUTMAPPER->IsBeingPressed(StyleI, PLAYER_1) )
if( INPUTMAPPER->IsBeingPressed(t, PLAYER_1) )
bButtonIsBeingPressed = true;
}