fix Model bugs exposed by use in NoteDisplay

This commit is contained in:
Chris Danford
2003-09-23 05:39:24 +00:00
parent 31e4d6757d
commit cda57e7c5d
2 changed files with 20 additions and 3 deletions
+2 -1
View File
@@ -266,7 +266,8 @@ void NoteDisplay::Load( int iColNum, PlayerNumber pn, CString NoteSkin, float fY
void NoteDisplay::SetActiveFrame( float fNoteBeat, Actor &actorToSet, float fAnimationLengthInBeats, bool bVivid, bool bNoteColor )
{
const int iNumFrames = actorToSet.GetNumStates();
ASSERT( iNumFrames );
if( iNumFrames == 0 ) // Model with no textures
return;
float fSongBeat = GAMESTATE->m_fSongBeat;
float fPrecentIntoAnimation = fmodf(fSongBeat,fAnimationLengthInBeats) / fAnimationLengthInBeats;