Fixed compiler warnings.

This commit is contained in:
Leonardo Zide
2016-12-01 23:09:14 -08:00
parent 672eb5e35d
commit 8152f99ec4
2 changed files with 5 additions and 7 deletions
+2 -4
View File
@@ -1678,8 +1678,6 @@ bool lcPiecesLibrary::ReadMeshData(lcFile& File, const lcMatrix44& CurrentTransf
}
else
{
bool Loaded = false;
for (int PieceInfoIndex = 0; PieceInfoIndex < mPieces.GetSize(); PieceInfoIndex++)
{
PieceInfo* Info = mPieces[PieceInfoIndex];
@@ -1692,7 +1690,7 @@ bool lcPiecesLibrary::ReadMeshData(lcFile& File, const lcMatrix44& CurrentTransf
lcMemFile IncludeFile;
if (mZipFiles[Info->mZipFileType]->ExtractFile(Info->mZipFileIndex, IncludeFile))
Loaded = ReadMeshData(IncludeFile, IncludeTransform, ColorCode, TextureStack, MeshData, MeshDataType, Optimize);
ReadMeshData(IncludeFile, IncludeTransform, ColorCode, TextureStack, MeshData, MeshDataType, Optimize);
}
else
{
@@ -1705,7 +1703,7 @@ bool lcPiecesLibrary::ReadMeshData(lcFile& File, const lcMatrix44& CurrentTransf
sprintf(FileName, "%sparts/%s.dat", mLibraryPath, Name);
if (IncludeFile.Open(FileName, "rt"))
Loaded = ReadMeshData(IncludeFile, IncludeTransform, ColorCode, TextureStack, MeshData, MeshDataType, Optimize);
ReadMeshData(IncludeFile, IncludeTransform, ColorCode, TextureStack, MeshData, MeshDataType, Optimize);
}
break;
+3 -3
View File
@@ -59,8 +59,8 @@ void lcSynthInit()
lcSynthInfo::lcSynthInfo(lcSynthType Type, float Length, int NumSections, PieceInfo* Info)
: mPieceInfo(Info), mType(Type), mLength(Length), mNumSections(NumSections)
{
float EdgeSectionLength;
float MidSectionLength;
float EdgeSectionLength = 0.0f;
float MidSectionLength = 0.0f;
switch (mType)
{
@@ -115,7 +115,7 @@ void lcSynthInfo::GetDefaultControlPoints(lcArray<lcPieceControlPoint>& ControlP
{
ControlPoints.SetSize(2);
float Scale;
float Scale = 1.0f;
switch (mType)
{