mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-10 05:28:06 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -55,7 +55,7 @@ void FlatLevelSource::prepareHeights(byteArray blocks)
|
||||
{
|
||||
block = Tile::grass_Id;
|
||||
}
|
||||
blocks[xc << 11 | zc << 7 | yc] = static_cast<byte>(block);
|
||||
blocks[xc << 11 | zc << 7 | yc] = static_cast<BYTE>(block);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -70,7 +70,7 @@ LevelChunk *FlatLevelSource::getChunk(int xOffs, int zOffs)
|
||||
{
|
||||
// 4J - now allocating this with a physical alloc & bypassing general memory management so that it will get cleanly freed
|
||||
int chunksSize = Level::genDepth * 16 * 16;
|
||||
byte *tileData = static_cast<byte *>(XPhysicalAlloc(chunksSize, MAXULONG_PTR, 4096, PAGE_READWRITE));
|
||||
BYTE *tileData = static_cast<BYTE *>(XPhysicalAlloc(chunksSize, MAXULONG_PTR, 4096, PAGE_READWRITE));
|
||||
XMemSet128(tileData,0,chunksSize);
|
||||
byteArray blocks = byteArray(tileData,chunksSize);
|
||||
// byteArray blocks = byteArray(16 * level->depth * 16);
|
||||
|
||||
Reference in New Issue
Block a user