From 3c590a243384f8da7f2218274233b4243a7248f4 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 24 Jun 2006 04:01:18 +0000 Subject: [PATCH] If the player is using both sides, look at both controllers. --- stepmania/src/Style.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Style.cpp b/stepmania/src/Style.cpp index d1c50e1830..0873b64b74 100644 --- a/stepmania/src/Style.cpp +++ b/stepmania/src/Style.cpp @@ -42,10 +42,11 @@ GameInput Style::StyleInputToGameInput( const StyleInput& StyleI ) const { ASSERT_M( StyleI.player < NUM_PLAYERS && StyleI.col < MAX_COLS_PER_PLAYER, 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) { - if( this->m_StyleType != ONE_PLAYER_TWO_SIDES && gc != (int) StyleI.player ) + if( bUsingOneSide && gc != (int) StyleI.player ) continue; for( int i = 0; i < m_pGame->m_iButtonsPerController && m_iInputColumn[gc][i] != END_MAPPING; ++i )