mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-12 17:08:32 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -2128,7 +2128,7 @@ size_t UIController::RegisterForCallbackId(UIScene *scene)
|
||||
{
|
||||
EnterCriticalSection(&m_registeredCallbackScenesCS);
|
||||
size_t newId = GetTickCount();
|
||||
newId &= 0xFFFFFF; // Chop off the top byte, we don't need any more accuracy than that
|
||||
newId &= 0xFFFFFF; // Chop off the top BYTE, we don't need any more accuracy than that
|
||||
newId |= (scene->getSceneType() << 24); // Add in the scene's type to help keep this unique
|
||||
m_registeredCallbackScenes[newId] = scene;
|
||||
LeaveCriticalSection(&m_registeredCallbackScenesCS);
|
||||
|
||||
Reference in New Issue
Block a user