LoadTransformedSlidingWindow and LoadOverlapped now strip the PlayerNumber of each tapnote to PLAYER_INVALID so that NoteDisplay doesn't crash during rendering a single chart that was autogenned from a couple chart.
This commit is contained in:
@@ -556,7 +556,8 @@ void NoteDataUtil::LoadTransformedSlidingWindow( const NoteData &in, NoteData &o
|
|||||||
{
|
{
|
||||||
int iOldTrack = t;
|
int iOldTrack = t;
|
||||||
int iNewTrack = (iOldTrack + iCurTrackOffset) % iNewNumTracks;
|
int iNewTrack = (iOldTrack + iCurTrackOffset) % iNewNumTracks;
|
||||||
const TapNote &tn = in.GetTapNote( iOldTrack, r );
|
TapNote tn = in.GetTapNote( iOldTrack, r );
|
||||||
|
tn.pn= PLAYER_INVALID;
|
||||||
out.SetTapNote( iNewTrack, r, tn );
|
out.SetTapNote( iNewTrack, r, tn );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -622,9 +623,10 @@ void NoteDataUtil::LoadOverlapped( const NoteData &in, NoteData &out, int iNewNu
|
|||||||
{
|
{
|
||||||
for( int iTrackFrom = 0; iTrackFrom < in.GetNumTracks(); ++iTrackFrom )
|
for( int iTrackFrom = 0; iTrackFrom < in.GetNumTracks(); ++iTrackFrom )
|
||||||
{
|
{
|
||||||
const TapNote &tnFrom = in.GetTapNote( iTrackFrom, row );
|
TapNote tnFrom = in.GetTapNote( iTrackFrom, row );
|
||||||
if( tnFrom.type == TapNoteType_Empty || tnFrom.type == TapNoteType_AutoKeysound )
|
if( tnFrom.type == TapNoteType_Empty || tnFrom.type == TapNoteType_AutoKeysound )
|
||||||
continue;
|
continue;
|
||||||
|
tnFrom.pn= PLAYER_INVALID;
|
||||||
|
|
||||||
// If this is a hold note, find the end.
|
// If this is a hold note, find the end.
|
||||||
int iEndIndex = row;
|
int iEndIndex = row;
|
||||||
|
|||||||
Reference in New Issue
Block a user