If the music is in slow motion, dance in slow motion, too.

This commit is contained in:
Glenn Maynard
2003-06-27 20:10:37 +00:00
parent 32be84e468
commit 33324c34cc
+5
View File
@@ -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 );
}