assert earlier if missing rather than when trying to open the Milkshape file

This commit is contained in:
Chris Danford
2005-10-23 18:48:25 +00:00
parent 59602f6f6e
commit a048cc52bb
+2
View File
@@ -110,6 +110,8 @@ void ScreenHowToPlay::Init()
m_pmCharacter->LoadMilkshapeAsciiBones( "Step-UP", GetAnimPath( ANIM_UP ) );
m_pmCharacter->LoadMilkshapeAsciiBones( "Step-RIGHT", GetAnimPath( ANIM_RIGHT ) );
m_pmCharacter->LoadMilkshapeAsciiBones( "Step-JUMPLR", GetAnimPath( ANIM_JUMPLR ) );
CString sRestFile = rndchar->GetRestAnimationPath();
ASSERT( !sRestFile.empty() );
m_pmCharacter->LoadMilkshapeAsciiBones( "rest",rndchar->GetRestAnimationPath() );
m_pmCharacter->SetDefaultAnimation( "rest" );
m_pmCharacter->PlayAnimation( "rest" );