mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-10 21:28:28 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -90,7 +90,7 @@ DWORD Level::tlsIdxLightCache = TlsAlloc();
|
||||
|
||||
void Level::enableLightingCache()
|
||||
{
|
||||
// Allocate 16K (needs 32K for large worlds) for a 16x16x16x4 byte cache of results, plus 128K required for toCheck array. Rounding up to 256 to keep as multiple of alignement - aligning to 128K boundary for possible cache locking.
|
||||
// Allocate 16K (needs 32K for large worlds) for a 16x16x16x4 BYTE cache of results, plus 128K required for toCheck array. Rounding up to 256 to keep as multiple of alignement - aligning to 128K boundary for possible cache locking.
|
||||
void *cache = static_cast<unsigned char *>(XPhysicalAlloc(256 * 1024, MAXULONG_PTR, 128 * 1024, PAGE_READWRITE | MEM_LARGE_PAGES));
|
||||
TlsSetValue(tlsIdxLightCache,cache);
|
||||
}
|
||||
@@ -4380,7 +4380,7 @@ bool Level::mayInteract(shared_ptr<Player> player, int xt, int yt, int zt, int c
|
||||
}
|
||||
|
||||
|
||||
void Level::broadcastEntityEvent(shared_ptr<Entity> e, byte event)
|
||||
void Level::broadcastEntityEvent(shared_ptr<Entity> e, BYTE event)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user