mirror of
https://git.neolegacy.dev/neoStudiosLCE/neoLegacy.git
synced 2026-12-03 06:29:05 +01:00
replace WinsockNetLayer with PlatformNetworkManagerWindows, implement external server stats
This commit is contained in:
1 parent
62b92d5c0b
commit
f434aae3af
42 files changed
+2621
-3406
No files matched your search
@@ -1327,7 +1327,7 @@ void CompressedTileStorage::write(DataOutputStream *dos)
|
||||
unsigned char *localIndicesAndData = *(unsigned char *volatile *)&indicesAndData;
|
||||
if(localIndicesAndData)
|
||||
{
|
||||
if(LOCALSYTEM_ENDIAN == BIGENDIAN)
|
||||
if(LOCALSYTEM_ENDIAN == BYTE_ORDER_BIG_ENDIAN)
|
||||
{
|
||||
// The first 1024 bytes are an array of shorts, so we need to reverse the endianness
|
||||
byteArray indicesCopy(1024);
|
||||
@@ -1365,7 +1365,7 @@ void CompressedTileStorage::read(DataInputStream *dis)
|
||||
|
||||
byteArray wrapper(indicesAndData, allocatedSize);
|
||||
dis->readFully(wrapper);
|
||||
if(LOCALSYTEM_ENDIAN == BIGENDIAN)
|
||||
if(LOCALSYTEM_ENDIAN == BYTE_ORDER_BIG_ENDIAN)
|
||||
{
|
||||
reverseIndices(indicesAndData);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user