From 95cf7d26490ac4ee7d7b4a77da4b29e4e0b9c227 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 23 Jan 2005 23:23:34 +0000 Subject: [PATCH] never store NoteRows in floats --- stepmania/src/NoteTypes.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; }