From 1b5478b736153cbff0a761ac5eca2f38d57da98a Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 5 Feb 2003 20:19:25 +0000 Subject: [PATCH] fix death when fSongBeat < 0 --- stepmania/src/NoteDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/NoteDisplay.cpp b/stepmania/src/NoteDisplay.cpp index dca9f332ef..7e66d1b914 100644 --- a/stepmania/src/NoteDisplay.cpp +++ b/stepmania/src/NoteDisplay.cpp @@ -105,7 +105,7 @@ void NoteDisplay::Load( int iColNum, PlayerNumber pn ) int NoteDisplay::GetFrameNo( float fNoteBeat, int iNumFrames, float fAnimationLengthInBeats, bool bVivid, bool bNoteColor ) { float fSongBeat = GAMESTATE->m_fSongBeat; - float fPercentIntoMeasure = fmodf( fSongBeat, fAnimationLengthInBeats ) / fAnimationLengthInBeats; + float fPercentIntoMeasure = fmodfp( fSongBeat, fAnimationLengthInBeats ) / fAnimationLengthInBeats; float fBeatFraction = fmodf( fNoteBeat, 1.0f ); fBeatFraction = froundf( fBeatFraction, 0.25f ); // round to nearest 1/4th