From cc4dbb1fc8f0b080194aedf5c90a51886d86aedb Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Thu, 27 Jul 2017 10:02:07 -0700 Subject: [PATCH] Linux fixes. --- common/lc_synth.cpp | 8 ++++---- common/minifig.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/common/lc_synth.cpp b/common/lc_synth.cpp index 0941759b..73d752a7 100644 --- a/common/lc_synth.cpp +++ b/common/lc_synth.cpp @@ -618,13 +618,13 @@ void lcSynthInfo::AddShockAbsorberParts(lcMemFile& File, lcArray& Se float Scale = (Distance - 66.0f) / 44.0f; const char* SpringPart; - if (!stricmp(mPieceInfo->mFileName, "73129.dat")) + if (!qstricmp(mPieceInfo->mFileName, "73129.dat")) SpringPart = "70038"; - else if (!stricmp(mPieceInfo->mFileName, "41838")) + else if (!qstricmp(mPieceInfo->mFileName, "41838")) SpringPart = "41837"; - else if (!stricmp(mPieceInfo->mFileName, "76138")) + else if (!qstricmp(mPieceInfo->mFileName, "76138")) SpringPart = "71953"; - else if (!stricmp(mPieceInfo->mFileName, "76537")) + else if (!qstricmp(mPieceInfo->mFileName, "76537")) SpringPart = "22977"; else return; diff --git a/common/minifig.cpp b/common/minifig.cpp index 494e60e3..b5d1fc88 100644 --- a/common/minifig.cpp +++ b/common/minifig.cpp @@ -364,8 +364,8 @@ void MinifigWizard::Calculate() float* Angles = mMinifig.Angles; lcMatrix44* Matrices = mMinifig.Matrices; - bool DroidTorso = Parts[LC_MFW_BODY] && !stricmp(Parts[LC_MFW_BODY]->mFileName, "30375.dat"); - bool SkeletonTorso = Parts[LC_MFW_BODY] && !stricmp(Parts[LC_MFW_BODY]->mFileName, "6260.dat"); + bool DroidTorso = Parts[LC_MFW_BODY] && !qstricmp(Parts[LC_MFW_BODY]->mFileName, "30375.dat"); + bool SkeletonTorso = Parts[LC_MFW_BODY] && !qstricmp(Parts[LC_MFW_BODY]->mFileName, "6260.dat"); if (Parts[LC_MFW_BODY3]) Root = lcMatrix44Translation(lcVector3(0, 0, 74.0f));