If the player is using both sides, look at both controllers.
This commit is contained in:
@@ -42,10 +42,11 @@ GameInput Style::StyleInputToGameInput( const StyleInput& StyleI ) const
|
|||||||
{
|
{
|
||||||
ASSERT_M( StyleI.player < NUM_PLAYERS && StyleI.col < MAX_COLS_PER_PLAYER,
|
ASSERT_M( StyleI.player < NUM_PLAYERS && StyleI.col < MAX_COLS_PER_PLAYER,
|
||||||
ssprintf("P%i C%i", StyleI.player, StyleI.col) );
|
ssprintf("P%i C%i", StyleI.player, StyleI.col) );
|
||||||
|
bool bUsingOneSide = m_StyleType != ONE_PLAYER_TWO_SIDES && m_StyleType != TWO_PLAYERS_SHARED_SIDES;
|
||||||
|
|
||||||
FOREACH_GameController(gc)
|
FOREACH_GameController(gc)
|
||||||
{
|
{
|
||||||
if( this->m_StyleType != ONE_PLAYER_TWO_SIDES && gc != (int) StyleI.player )
|
if( bUsingOneSide && gc != (int) StyleI.player )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for( int i = 0; i < m_pGame->m_iButtonsPerController && m_iInputColumn[gc][i] != END_MAPPING; ++i )
|
for( int i = 0; i < m_pGame->m_iButtonsPerController && m_iInputColumn[gc][i] != END_MAPPING; ++i )
|
||||||
|
|||||||
Reference in New Issue
Block a user