mirror of https://github.com/axmolengine/axmol.git
Fix indent
This commit is contained in:
parent
f6083f3490
commit
20a6151f4c
|
@ -177,19 +177,19 @@ bool CocoLoader::ReadCocoBinBuff(char* pBinBuff)
|
|||
pTempBuff += sizeof(stCocoFileHeader);
|
||||
char* pStartAddr = m_pMemoryBuff = pTempBuff;
|
||||
|
||||
char* pDestBuff = new char[m_pFileHeader->m_nDataSize];
|
||||
if (m_pFileHeader->m_nCompressSize > 0)
|
||||
char* pDestBuff = new char[m_pFileHeader->m_nDataSize];
|
||||
if (m_pFileHeader->m_nCompressSize > 0)
|
||||
{
|
||||
uLongf dwSrcSize = m_pFileHeader->m_nCompressSize;
|
||||
uLongf dwDestSize = m_pFileHeader->m_nDataSize;
|
||||
uncompress((Bytef*)pDestBuff,&dwDestSize,(Bytef*)m_pMemoryBuff,dwSrcSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
memcpy(pDestBuff, m_pMemoryBuff, m_pFileHeader->m_nDataSize);
|
||||
}
|
||||
pStartAddr = m_pMemoryBuff = pDestBuff;
|
||||
|
||||
else
|
||||
{
|
||||
memcpy(pDestBuff, m_pMemoryBuff, m_pFileHeader->m_nDataSize);
|
||||
}
|
||||
pStartAddr = m_pMemoryBuff = pDestBuff;
|
||||
|
||||
m_pObjectDescArray = (stExpCocoObjectDesc*)pStartAddr;
|
||||
|
||||
char* pCocoMemAddr = pStartAddr + m_pFileHeader->m_CocoNodeMemAddr;
|
||||
|
|
Loading…
Reference in New Issue