mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-02-25 21:32:12 +00:00
Replaced another IsX360() with #ifdef
This commit is contained in:
parent
9fcd93a955
commit
b7913266d6
1 changed files with 9 additions and 10 deletions
|
@ -1407,8 +1407,7 @@ NavErrorType CNavMesh::Load( void )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( IsX360() )
|
#ifdef _XBOX
|
||||||
{
|
|
||||||
// 360 has compressed NAVs
|
// 360 has compressed NAVs
|
||||||
CLZMA lzma;
|
CLZMA lzma;
|
||||||
if ( lzma.IsCompressed( (unsigned char *)fileBuffer.Base() ) )
|
if ( lzma.IsCompressed( (unsigned char *)fileBuffer.Base() ) )
|
||||||
|
@ -1418,7 +1417,7 @@ NavErrorType CNavMesh::Load( void )
|
||||||
lzma.Uncompress( (unsigned char *)fileBuffer.Base(), pOriginalData );
|
lzma.Uncompress( (unsigned char *)fileBuffer.Base(), pOriginalData );
|
||||||
fileBuffer.AssumeMemory( pOriginalData, originalSize, originalSize, CUtlBuffer::READ_ONLY );
|
fileBuffer.AssumeMemory( pOriginalData, originalSize, originalSize, CUtlBuffer::READ_ONLY );
|
||||||
}
|
}
|
||||||
}
|
#endif
|
||||||
|
|
||||||
// check magic number
|
// check magic number
|
||||||
unsigned int magic = fileBuffer.GetUnsignedInt();
|
unsigned int magic = fileBuffer.GetUnsignedInt();
|
||||||
|
|
Loading…
Reference in a new issue