Integrating github/staging through commit ab87ed9

This commit is contained in:
alexpete
2021-04-09 11:27:37 -07:00
parent ae62a97894
commit 1044dc3da1
1582 changed files with 29374 additions and 519051 deletions
+4 -2
View File
@@ -594,7 +594,8 @@ Quatern snuggle(Quatern q, HVect* k)
mag[2] = (double)q.y * q.z + (double)q.x * q.w;
for (i = 0; i < 3; i++)
{
if (neg[i] = (mag[i] < 0.0))
neg[i] = (mag[i] < 0.0);
if (neg[i])
{
mag[i] = -mag[i];
}
@@ -670,7 +671,8 @@ Quatern snuggle(Quatern q, HVect* k)
for (i = 0; i < 4; i++)
{
pa[i] = 0.0;
if (neg[i] = (qa[i] < 0.0))
neg[i] = (qa[i] < 0.0);
if (neg[i])
{
qa[i] = -qa[i];
}
+3 -1
View File
@@ -315,9 +315,11 @@ bool CImageGif::Load(const QString& fileName, CImageEx& outImage)
}
}
while ((ch = NEXTBYTE))
ch = NEXTBYTE;
while (ch)
{
ptr += ch;
ch = NEXTBYTE;
}
}
-6
View File
@@ -266,9 +266,6 @@ bool CImage_DXTC::Load(const char* filename, CImageEx& outImage, bool* pQualityL
BYTE* pDecompBytes;
// Does texture have mipmaps?
bool bMipTexture = pImage->mfGet_numMips() > 1;
ETEX_Format eFormat = pImage->mfGetFormat();
int imageFlags = pImage->mfGet_Flags();
@@ -298,9 +295,6 @@ bool CImage_DXTC::Load(const char* filename, CImageEx& outImage, bool* pQualityL
int nHorizontalFaces(1);
int nVerticalFaces(1);
int nNumFaces(1);
int nMipMapsSize(0);
int nMipMapCount(numMips);
int nTargetPitch(imageWidth * 4);
int nTargetPageSize(nTargetPitch * imageHeight);
+4 -1
View File
@@ -174,7 +174,10 @@ void CMemoryBlock::Uncompress(CMemoryBlock& toBlock) const
toBlock.Allocate(m_uncompressedSize);
toBlock.m_uncompressedSize = 0;
unsigned long destSize = m_uncompressedSize;
int result = uncompress((unsigned char*)toBlock.GetBuffer(), &destSize, (unsigned char*)GetBuffer(), GetSize());
#if !defined(NDEBUG)
int result =
#endif
uncompress((unsigned char*)toBlock.GetBuffer(), &destSize, (unsigned char*)GetBuffer(), GetSize());
assert(result == Z_OK);
assert(destSize == m_uncompressedSize);
}
-1
View File
@@ -98,7 +98,6 @@ namespace Path
const char* szSourceDirectory(strSourceDirectory.c_str());
const char* pchCurrentPosition(szSourceDirectory);
const char* pchLastPosition(szSourceDirectory);
const char* pchAuxPosition(szSourceDirectory);
rcstrDirectoryTree.clear();
@@ -313,7 +313,10 @@ void CXmlHistoryManager::RecordUndo(IXmlUndoEventHandler* pEventHandler, const c
assert(pChangedXml);
XmlNodeRef newData = gEnv->pSystem->CreateXmlNode();
bool bRes = pEventHandler->SaveToXml(newData);
#if !defined(NDEBUG)
bool bRes =
#endif
pEventHandler->SaveToXml(newData);
assert(bRes);
TXmlHistotyGroupPtrList activeGroups = m_HistoryInfoMap[ m_CurrentVersion ].ActiveGroups;