fix delete in the editor (BeatToNoteRow was wrong for negative numbers)

This commit is contained in:
Glenn Maynard
2005-01-23 19:10:44 +00:00
parent e02431168d
commit 774ae6fa5b
+3 -3
View File
@@ -170,10 +170,10 @@ NoteType BeatToNoteType( float fBeat );
bool IsNoteOfType( int row, NoteType t );
CString NoteTypeToString( NoteType nt );
inline int BeatToNoteRow( float fBeatNum ) { return int( fBeatNum * ROWS_PER_BEAT + 0.5f); }; // round
inline int BeatToNoteRow( float fBeatNum ) { return lrintf( fBeatNum * ROWS_PER_BEAT ); } // round
inline int BeatToNoteRowNotRounded( float fBeatNum ) { return (int)( fBeatNum * ROWS_PER_BEAT ); };
inline float NoteRowToBeat( float fNoteIndex ) { return fNoteIndex / (float)ROWS_PER_BEAT; };
inline float NoteRowToBeat( int row ) { return NoteRowToBeat( (float)row ); };
inline float NoteRowToBeat( float fNoteIndex ) { return fNoteIndex / (float)ROWS_PER_BEAT; }
inline float NoteRowToBeat( int row ) { return NoteRowToBeat( (float)row ); }