Fix indent

This commit is contained in:
XiaoFeng 2015-06-09 17:40:42 +08:00
parent f6083f3490
commit 20a6151f4c
1 changed files with 8 additions and 8 deletions

View File

@ -177,19 +177,19 @@ bool CocoLoader::ReadCocoBinBuff(char* pBinBuff)
pTempBuff += sizeof(stCocoFileHeader); pTempBuff += sizeof(stCocoFileHeader);
char* pStartAddr = m_pMemoryBuff = pTempBuff; char* pStartAddr = m_pMemoryBuff = pTempBuff;
char* pDestBuff = new char[m_pFileHeader->m_nDataSize]; char* pDestBuff = new char[m_pFileHeader->m_nDataSize];
if (m_pFileHeader->m_nCompressSize > 0) if (m_pFileHeader->m_nCompressSize > 0)
{ {
uLongf dwSrcSize = m_pFileHeader->m_nCompressSize; uLongf dwSrcSize = m_pFileHeader->m_nCompressSize;
uLongf dwDestSize = m_pFileHeader->m_nDataSize; uLongf dwDestSize = m_pFileHeader->m_nDataSize;
uncompress((Bytef*)pDestBuff,&dwDestSize,(Bytef*)m_pMemoryBuff,dwSrcSize); uncompress((Bytef*)pDestBuff,&dwDestSize,(Bytef*)m_pMemoryBuff,dwSrcSize);
} }
else else
{ {
memcpy(pDestBuff, m_pMemoryBuff, m_pFileHeader->m_nDataSize); memcpy(pDestBuff, m_pMemoryBuff, m_pFileHeader->m_nDataSize);
} }
pStartAddr = m_pMemoryBuff = pDestBuff; pStartAddr = m_pMemoryBuff = pDestBuff;
m_pObjectDescArray = (stExpCocoObjectDesc*)pStartAddr; m_pObjectDescArray = (stExpCocoObjectDesc*)pStartAddr;
char* pCocoMemAddr = pStartAddr + m_pFileHeader->m_CocoNodeMemAddr; char* pCocoMemAddr = pStartAddr + m_pFileHeader->m_CocoNodeMemAddr;