unwrap LoadMilkshapeAsciiBones (no other changes)

This commit is contained in:
Glenn Maynard
2004-08-19 07:47:56 +00:00
parent 73420d5aa1
commit e6bc94a4af
+3 -3
View File
@@ -286,8 +286,9 @@ void Model::LoadMilkshapeAsciiBones( CString sAniName, CString sPath )
// bones // bones
// //
int nNumBones = 0; int nNumBones = 0;
if( sscanf (sLine, "Bones: %d", &nNumBones) == 1 ) if( sscanf (sLine, "Bones: %d", &nNumBones) != 1 )
{ continue;
m_mapNameToAnimation[sAniName] = msAnimation(); m_mapNameToAnimation[sAniName] = msAnimation();
msAnimation &Animation = m_mapNameToAnimation[sAniName]; msAnimation &Animation = m_mapNameToAnimation[sAniName];
@@ -396,7 +397,6 @@ void Model::LoadMilkshapeAsciiBones( CString sAniName, CString sPath )
PlayAnimation( sAniName ); PlayAnimation( sAniName );
} }
}
} }
bool Model::EarlyAbortDraw() bool Model::EarlyAbortDraw()