Simplify.

This commit is contained in:
Steve Checkoway
2006-07-16 07:23:12 +00:00
parent ad1e7b4afa
commit ba8fb41231
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -93,10 +93,9 @@ void BeginnerHelper::ShowStepCircle( PlayerNumber pn, int CSTEP )
m_sStepCircle[pn][isc].SetZoom( 0 ); m_sStepCircle[pn][isc].SetZoom( 0 );
} }
void BeginnerHelper::AddPlayer( PlayerNumber pn, NoteData *pSteps ) void BeginnerHelper::AddPlayer( PlayerNumber pn, const NoteData &ns )
{ {
ASSERT( !m_bInitialized ); ASSERT( !m_bInitialized );
ASSERT( pSteps != NULL );
ASSERT( pn >= 0 && pn < NUM_PLAYERS ); ASSERT( pn >= 0 && pn < NUM_PLAYERS );
ASSERT( GAMESTATE->IsHumanPlayer(pn) ); ASSERT( GAMESTATE->IsHumanPlayer(pn) );
@@ -108,7 +107,7 @@ void BeginnerHelper::AddPlayer( PlayerNumber pn, NoteData *pSteps )
if( !DoesFileExist(Character->GetModelPath()) ) if( !DoesFileExist(Character->GetModelPath()) )
return; return;
m_NoteData[pn].CopyAll( *pSteps ); m_NoteData[pn].CopyAll( ns );
m_bPlayerEnabled[pn] = true; m_bPlayerEnabled[pn] = true;
} }
+1 -1
View File
@@ -17,7 +17,7 @@ public:
bool Initialize( int iDancePadType ); bool Initialize( int iDancePadType );
bool IsInitialized() { return m_bInitialized; } bool IsInitialized() { return m_bInitialized; }
static bool CanUse(); static bool CanUse();
void AddPlayer( PlayerNumber pn, NoteData *pSteps ); void AddPlayer( PlayerNumber pn, const NoteData &nd );
void ShowStepCircle( PlayerNumber pn, int CSTEP ); void ShowStepCircle( PlayerNumber pn, int CSTEP );
bool m_bShowBackground; bool m_bShowBackground;