cleanup
This commit is contained in:
@@ -81,7 +81,7 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo
|
||||
CString sLine;
|
||||
int iLineNum = 0;
|
||||
char szName[MS_MAX_NAME];
|
||||
int nFlags, nIndex, i, j;
|
||||
int nFlags, nIndex;
|
||||
|
||||
RageVec3ClearBounds( m_vMins, m_vMaxs );
|
||||
|
||||
@@ -110,7 +110,7 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo
|
||||
ASSERT( m_Meshes.empty() );
|
||||
m_Meshes.resize( nNumMeshes );
|
||||
|
||||
for (i = 0; i < nNumMeshes; i++)
|
||||
for( int i = 0; i < nNumMeshes; i++ )
|
||||
{
|
||||
msMesh &mesh = m_Meshes[i];
|
||||
vector<RageModelVertex> &Vertices = mesh.Vertices;
|
||||
@@ -141,7 +141,7 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo
|
||||
|
||||
Vertices.resize( nNumVertices );
|
||||
|
||||
for (j = 0; j < nNumVertices; j++)
|
||||
for( int j = 0; j < nNumVertices; j++ )
|
||||
{
|
||||
RageModelVertex &v = Vertices[j];
|
||||
|
||||
@@ -180,7 +180,7 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo
|
||||
|
||||
vector<RageVector3> Normals;
|
||||
Normals.resize( nNumNormals );
|
||||
for (j = 0; j < nNumNormals; j++)
|
||||
for( int j = 0; j < nNumNormals; j++ )
|
||||
{
|
||||
if( f.GetLine( sLine ) <= 0 )
|
||||
THROW;
|
||||
@@ -193,8 +193,6 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo
|
||||
Normals[j] = Normal;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// triangles
|
||||
//
|
||||
@@ -207,7 +205,7 @@ void RageModelGeometry::LoadMilkshapeAscii( const CString& _sPath, bool bNeedsNo
|
||||
|
||||
Triangles.resize( nNumTriangles );
|
||||
|
||||
for (j = 0; j < nNumTriangles; j++)
|
||||
for( int j = 0; j < nNumTriangles; j++ )
|
||||
{
|
||||
if( f.GetLine( sLine ) <= 0 )
|
||||
THROW;
|
||||
|
||||
Reference in New Issue
Block a user