Lots of code expects NoteData::CopyRange to be [x,y]; this fixes editor
and gameplay bugs. I'd suggest that transforms should also take [x,y], not [x,y), for consistency.
This commit is contained in:
@@ -86,7 +86,7 @@ void NoteData::CopyRange( NoteData* pFrom, int iFromIndexBegin, int iFromIndexEn
|
||||
// copy recorded TapNotes
|
||||
int f = iFromIndexBegin, t = iToIndexBegin;
|
||||
|
||||
while( f<iFromIndexEnd )
|
||||
while( f<=iFromIndexEnd )
|
||||
{
|
||||
for( int c=0; c<m_iNumTracks; c++ )
|
||||
SetTapNote(c, t, pFrom->GetTapNote(c, f));
|
||||
|
||||
@@ -363,7 +363,7 @@ void Player::Update( float fDeltaTime )
|
||||
ASSERT(0);
|
||||
}
|
||||
|
||||
m_NoteField.CopyRange( this, BeatToNoteRow(fStartBeat), BeatToNoteRow(fEndBeat), BeatToNoteRow(fStartBeat) );
|
||||
m_NoteField.CopyRange( this, BeatToNoteRow(fStartBeat), BeatToNoteRow(fEndBeat), BeatToNoteRow(fStartBeat)-1 );
|
||||
}
|
||||
GAMESTATE->m_TransformsToApply[m_PlayerNumber].clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user