mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-28 18:05:49 +00:00
fix: remove byte type alias
This commit is contained in:
@@ -55,7 +55,7 @@ void FlatLevelSource::prepareHeights(byteArray blocks)
|
||||
{
|
||||
block = Tile::grass_Id;
|
||||
}
|
||||
blocks[xc << 11 | zc << 7 | yc] = (byte) block;
|
||||
blocks[xc << 11 | zc << 7 | yc] = (uint8_t) 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 = (byte *)XPhysicalAlloc(chunksSize, MAXULONG_PTR, 4096, PAGE_READWRITE);
|
||||
uint8_t *tileData = (uint8_t *)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