never store NoteRows in floats

This commit is contained in:
Glenn Maynard
2005-01-23 23:23:34 +00:00
parent c670a3b62d
commit 95cf7d2649
+2 -3
View File
@@ -174,9 +174,8 @@ bool IsNoteOfType( int row, NoteType t );
CString NoteTypeToString( NoteType nt );
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 int BeatToNoteRowNotRounded( float fBeatNum ) { return (int)( fBeatNum * ROWS_PER_BEAT ); }
inline float NoteRowToBeat( int iRow ) { return iRow / (float)ROWS_PER_BEAT; }