also send ComboChanged at beginning of gameplay

This commit is contained in:
Glenn Maynard
2006-11-16 05:27:59 +00:00
parent 676551d87e
commit c2313737b5
2 changed files with 15 additions and 8 deletions
+14 -8
View File
@@ -441,6 +441,19 @@ void Player::Load()
sound.Load( sKeysoundFilePath, true );
sound.SetParams( p );
}
SendComboMessage( m_pPlayerStageStats->m_iCurCombo, m_pPlayerStageStats->m_iCurMissCombo );
}
void Player::SendComboMessage( int iOldCombo, int iOldMissCombo )
{
Message msg( "ComboChanged" );
msg.SetParam( "Player", m_pPlayerState->m_PlayerNumber );
msg.SetParam( "OldCombo", iOldCombo );
msg.SetParam( "OldMissCombo", iOldMissCombo );
msg.SetParam( "PlayerState", LuaReference::CreateFromPush(*m_pPlayerState) );
msg.SetParam( "PlayerStageStats", LuaReference::CreateFromPush(*m_pPlayerStageStats) );
MESSAGEMAN->Broadcast( msg );
}
void Player::Update( float fDeltaTime )
@@ -1745,14 +1758,7 @@ void Player::HandleTapRowScore( unsigned row )
if( m_pSecondaryScoreKeeper != NULL )
m_pSecondaryScoreKeeper->HandleTapRowScore( m_NoteData, row );
{
Message msg( "ComboChanged" );
msg.SetParam( "Player", m_pPlayerState->m_PlayerNumber );
msg.SetParam( "OldCombo", iOldCombo );
msg.SetParam( "OldMissCombo", iOldMissCombo );
msg.SetParam( "PlayerStageStats", LuaReference::CreateFromPush(*m_pPlayerStageStats) );
MESSAGEMAN->Broadcast( msg );
}
SendComboMessage( iOldCombo, iOldMissCombo );
if( m_pPlayerStageStats && m_pCombo )
{
+1
View File
@@ -137,6 +137,7 @@ protected:
void HandleHoldScore( const TapNote &tn );
void DrawTapJudgments();
void DrawHoldJudgments();
void SendComboMessage( int iOldCombo, int iOldMissCombo );
void SetJudgment( TapNoteScore tns, bool bEarly );