If the column is invalid, return.

This commit is contained in:
Steve Checkoway
2006-12-06 07:16:38 +00:00
parent 9b0566549d
commit 8329d2babe
+4 -5
View File
@@ -2183,6 +2183,9 @@ void ScreenGameplay::Input( const InputEventPlus &input )
bool bRelease = input.type == IET_RELEASE;
const int iCol = GAMESTATE->GetCurrentStyle()->GameInputToColumn( input.GameI );
if( iCol == Column_Invalid )
return;
// Don't pass on any inputs to Player that aren't a press or a release.
switch( input.type )
{
@@ -2195,12 +2198,8 @@ void ScreenGameplay::Input( const InputEventPlus &input )
if( GAMESTATE->m_bMultiplayer )
{
if( input.mp != MultiPlayer_Invalid &&
iCol != Column_Invalid &&
GAMESTATE->IsMultiPlayerEnabled(input.mp) )
{
if( input.mp != MultiPlayer_Invalid && GAMESTATE->IsMultiPlayerEnabled(input.mp) )
m_vPlayerInfo[input.mp].m_pPlayer->Step( iCol, -1, input.DeviceI.ts, false, bRelease );
}
}
else
{