From 33324c34cc2d3efbcef85c0cdd614734330bf9e4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 27 Jun 2003 20:10:37 +0000 Subject: [PATCH] If the music is in slow motion, dance in slow motion, too. --- stepmania/src/DancingCharacters.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/DancingCharacters.cpp b/stepmania/src/DancingCharacters.cpp index 337052a761..7733fceb37 100644 --- a/stepmania/src/DancingCharacters.cpp +++ b/stepmania/src/DancingCharacters.cpp @@ -95,6 +95,11 @@ void DancingCharacters::Update( float fDelta ) float fBPM = GAMESTATE->m_fCurBPS*60; float fUpdateScale = SCALE( fBPM, 60.f, 300.f, 0.75f, 1.5f ); CLAMP( fUpdateScale, 0.75f, 1.5f ); + + /* It's OK for the animation to go slower than natural when we're + * at a very low music rate. */ + fUpdateScale *= GAMESTATE->m_SongOptions.m_fMusicRate; + ActorFrame::Update( fDelta*fUpdateScale ); }