We can reach, but not exceed MAX_COLS_PER_PLAYER. (fix assert on beat-double7)

This commit is contained in:
Ben Anderson
2005-10-14 00:16:24 +00:00
parent 3f3ba93c85
commit 8fb5eb78f6
+1 -1
View File
@@ -519,7 +519,7 @@ void Player::Update( float fDeltaTime )
// update pressed flag
//
const int iNumCols = GAMESTATE->GetCurrentStyle()->m_iColsPerPlayer;
ASSERT_M( iNumCols < MAX_COLS_PER_PLAYER, ssprintf("%i >= %i", iNumCols, MAX_COLS_PER_PLAYER) );
ASSERT_M( iNumCols <= MAX_COLS_PER_PLAYER, ssprintf("%i > %i", iNumCols, MAX_COLS_PER_PLAYER) );
for( int col=0; col < iNumCols; ++col )
{
// TODO: Remove use of PlayerNumber.