TWO_PLAYERS_SHARED_SIDES.

This commit is contained in:
Steve Checkoway
2006-06-24 00:09:50 +00:00
parent fc104372cf
commit 6b38a1bea5
5 changed files with 16 additions and 5 deletions
+2 -1
View File
@@ -85,7 +85,8 @@ void ArrowEffects::Update()
for( int iColNum = 0; iColNum < MAX_COLS_PER_PLAYER; ++iColNum )
{
const int iNumCols = pStyle->m_iColsPerPlayer;
const int iNumSides = pStyle->m_StyleType==ONE_PLAYER_TWO_SIDES ? 2 : 1;
const int iNumSides = (pStyle->m_StyleType==ONE_PLAYER_TWO_SIDES ||
pStyle->m_StyleType==TWO_PLAYERS_SHARED_SIDES) ? 2 : 1;
const int iNumColsPerSide = iNumCols / iNumSides;
const int iSideIndex = iColNum / iNumColsPerSide;
const int iColOnSide = iColNum % iNumColsPerSide;