diff --git a/stepmania/src/NoteTypes.h b/stepmania/src/NoteTypes.h index 4cf80fb587..ea393f854e 100644 --- a/stepmania/src/NoteTypes.h +++ b/stepmania/src/NoteTypes.h @@ -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; }