Fixed compiler warnings.
This commit is contained in:
@@ -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
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user