allow access to individual BroadcastOnChangePtrs within BroadcastOnChangePtr1D

This commit is contained in:
Chris Danford
2005-02-25 18:17:26 +00:00
parent 03e3ba7609
commit 071f02a862
17 changed files with 43 additions and 37 deletions
+2 -2
View File
@@ -113,7 +113,7 @@ bool GameCommand::DescribesCurrentMode( PlayerNumber pn ) const
if( m_pSong && GAMESTATE->m_pCurSong.Get() != m_pSong )
return false;
if( m_pSteps && GAMESTATE->m_pCurSteps[pn] != m_pSteps )
if( m_pSteps && GAMESTATE->m_pCurSteps[pn].Get() != m_pSteps )
return false;
if( m_pCharacter && GAMESTATE->m_pCurCharacters[pn] != m_pCharacter )
return false;
@@ -641,7 +641,7 @@ void GameCommand::Apply( const vector<PlayerNumber> &vpns ) const
}
if( m_pSteps )
FOREACH_CONST( PlayerNumber, vpns, pn )
GAMESTATE->m_pCurSteps.Set( *pn, m_pSteps );
GAMESTATE->m_pCurSteps[*pn].Set( m_pSteps );
if( m_pCourse )
{
GAMESTATE->m_pCurCourse = m_pCourse;