From 2f7c8a0c2e384ec2056b5300d4f41a379c71f8ae Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 6 Mar 2003 22:50:44 +0000 Subject: [PATCH] Reduce dependency on MAX_BEATS. --- stepmania/src/ScreenEdit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/ScreenEdit.cpp b/stepmania/src/ScreenEdit.cpp index 2e3d2a3363..fd9b0ee51e 100644 --- a/stepmania/src/ScreenEdit.cpp +++ b/stepmania/src/ScreenEdit.cpp @@ -709,7 +709,7 @@ void ScreenEdit::InputEdit( const DeviceInput& DeviceI, const InputEventType typ } GAMESTATE->m_fSongBeat += fBeatsToMove; - GAMESTATE->m_fSongBeat = clamp( GAMESTATE->m_fSongBeat, 0, MAX_BEATS-1 ); + GAMESTATE->m_fSongBeat = max( GAMESTATE->m_fSongBeat, 0 ); GAMESTATE->m_fSongBeat = froundf( GAMESTATE->m_fSongBeat, NoteTypeToBeat(m_SnapDisplay.GetNoteType()) ); m_soundChangeLine.Play(); }