From 2dbd97b044a05ffd6027ca9a7815ef76d864f17a Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Fri, 29 Apr 2005 04:55:55 +0000 Subject: [PATCH] fix step broadcasts miss some notes --- stepmania/src/ScreenGameplay.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index d0ed3a58a9..bea368fce6 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1713,11 +1713,17 @@ void ScreenGameplay::SendCrossedMessages() FOREACH_EnabledPlayer( p ) { if( GAMESTATE->m_pCurSteps[p]->GetDifficulty() == DIFFICULTY_BEGINNER ) + { pn = p; + break; + } } if( pn == PLAYER_INVALID ) return; + NoteData &nd = m_Player[pn].m_NoteData; + + static int iRowLastCrossedAll[NUM_MESSAGES_TO_SEND] = { 0, 0, 0, 0 }; for( int i=0; iTrace( "r = %d", r ); MESSAGEMAN->Broadcast( (Message)(MESSAGE_NOTE_CROSSED + i) );