This commit is contained in:
Glenn Maynard
2005-09-08 02:49:44 +00:00
parent 661c160ee0
commit 1c0ed2e85c
+5 -7
View File
@@ -81,7 +81,7 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo
CString sLine; CString sLine;
int iLineNum = 0; int iLineNum = 0;
char szName[MS_MAX_NAME]; char szName[MS_MAX_NAME];
int nFlags, nIndex, i, j; int nFlags, nIndex;
RageVec3ClearBounds( m_vMins, m_vMaxs ); RageVec3ClearBounds( m_vMins, m_vMaxs );
@@ -110,7 +110,7 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo
ASSERT( m_Meshes.empty() ); ASSERT( m_Meshes.empty() );
m_Meshes.resize( nNumMeshes ); m_Meshes.resize( nNumMeshes );
for (i = 0; i < nNumMeshes; i++) for( int i = 0; i < nNumMeshes; i++ )
{ {
msMesh &mesh = m_Meshes[i]; msMesh &mesh = m_Meshes[i];
vector<RageModelVertex> &Vertices = mesh.Vertices; vector<RageModelVertex> &Vertices = mesh.Vertices;
@@ -141,7 +141,7 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo
Vertices.resize( nNumVertices ); Vertices.resize( nNumVertices );
for (j = 0; j < nNumVertices; j++) for( int j = 0; j < nNumVertices; j++ )
{ {
RageModelVertex &v = Vertices[j]; RageModelVertex &v = Vertices[j];
@@ -180,7 +180,7 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo
vector<RageVector3> Normals; vector<RageVector3> Normals;
Normals.resize( nNumNormals ); Normals.resize( nNumNormals );
for (j = 0; j < nNumNormals; j++) for( int j = 0; j < nNumNormals; j++ )
{ {
if( f.GetLine( sLine ) <= 0 ) if( f.GetLine( sLine ) <= 0 )
THROW; THROW;
@@ -193,8 +193,6 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo
Normals[j] = Normal; Normals[j] = Normal;
} }
// //
// triangles // triangles
// //
@@ -207,7 +205,7 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo
Triangles.resize( nNumTriangles ); Triangles.resize( nNumTriangles );
for (j = 0; j < nNumTriangles; j++) for( int j = 0; j < nNumTriangles; j++ )
{ {
if( f.GetLine( sLine ) <= 0 ) if( f.GetLine( sLine ) <= 0 )
THROW; THROW;