fix AddMines places mines that overlap other taps and hold heads (Disconnected Mobius expert)

This commit is contained in:
Chris Danford
2004-02-25 08:40:03 +00:00
parent 5cb9970c4e
commit 15e19d4885
3 changed files with 26 additions and 4 deletions
+13
View File
@@ -141,6 +141,19 @@ bool NoteData::IsRowEmpty( int index ) const
return true;
}
bool NoteData::IsRangeEmpty( int track, int iIndexBegin, int iIndexEnd ) const
{
ASSERT( track<m_iNumTracks );
CLAMP( iIndexBegin, 0, GetMaxRow() );
CLAMP( iIndexEnd, 0, GetMaxRow() );
for( int i=iIndexBegin; i<=iIndexEnd; i++ )
if( GetTapNoteX(track,i) != TAP_EMPTY )
return false;
return true;
}
int NoteData::GetNumTapNonEmptyTracks( int index ) const
{
int iNum = 0;