missed commit: m_iInputColumn defines columns only for game-custom
buttons
This commit is contained in:
@@ -46,9 +46,11 @@ GameInput Style::StyleInputToGameInput( int iCol, PlayerNumber pn ) const
|
||||
if( bUsingOneSide && gc != (int) pn )
|
||||
continue;
|
||||
|
||||
for( int i = 0; i < INPUTMAPPER->GetInputScheme()->m_iButtonsPerController && m_iInputColumn[gc][i] != END_MAPPING; ++i )
|
||||
if( m_iInputColumn[gc][i] == iCol )
|
||||
for( int i = GAME_BUTTON_NEXT; i < INPUTMAPPER->GetInputScheme()->m_iButtonsPerController && m_iInputColumn[gc][i] != END_MAPPING; ++i )
|
||||
{
|
||||
if( m_iInputColumn[gc][i-GAME_BUTTON_NEXT] == iCol )
|
||||
return GameInput( gc, i );
|
||||
}
|
||||
}
|
||||
|
||||
FAIL_M( ssprintf("Invalid column %i,%i", pn, iCol) );
|
||||
|
||||
Reference in New Issue
Block a user