From bcbaa98f9034a5fb7558f1a77edd5b4a32f99138 Mon Sep 17 00:00:00 2001 From: Tropical <42101043+tropicaaal@users.noreply.github.com> Date: Fri, 6 Mar 2026 05:09:17 -0600 Subject: [PATCH] fix: more replacement mistakes --- .../Platform/Durango/Iggy/gdraw/gdraw_d3d1x_shared.inl | 2 +- .../Durango/Network/DQRNetworkManager_SendReceive.cpp | 6 +++--- .../Platform/Windows64/Iggy/gdraw/gdraw_d3d1x_shared.inl | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Minecraft.Client/Platform/Durango/Iggy/gdraw/gdraw_d3d1x_shared.inl b/Minecraft.Client/Platform/Durango/Iggy/gdraw/gdraw_d3d1x_shared.inl index 19425d782..1ab1f13f7 100644 --- a/Minecraft.Client/Platform/Durango/Iggy/gdraw/gdraw_d3d1x_shared.inl +++ b/Minecraft.Client/Platform/Durango/Iggy/gdraw/gdraw_d3d1x_shared.inl @@ -2114,7 +2114,7 @@ static bool alloc_dynbuffer(U32 size) // // 1. filled polygons. these are triangulated simple polygons and thus have // roughly as many triangles as they have vertices. they use either 8- or - // 16-uint8_t vertex formats; this makes a worst case of 6 bytes of indices + // 16-byte vertex formats; this makes a worst case of 6 bytes of indices // for every 8 bytes of vertex data. // 2. strokes and edge antialiasing. they use a 16-byte vertex format and // worst-case write a "double quadstrip" which has 4 triangles for every diff --git a/Minecraft.Client/Platform/Durango/Network/DQRNetworkManager_SendReceive.cpp b/Minecraft.Client/Platform/Durango/Network/DQRNetworkManager_SendReceive.cpp index 2d99ccafd..b80bed329 100644 --- a/Minecraft.Client/Platform/Durango/Network/DQRNetworkManager_SendReceive.cpp +++ b/Minecraft.Client/Platform/Durango/Network/DQRNetworkManager_SendReceive.cpp @@ -51,7 +51,7 @@ void DQRNetworkManager::BytesReceivedInternal(DQRConnectionInfo *connectionInfo, do { - BYTE uint8_t = *pNextByte; + BYTE byte = *pNextByte; switch( connectionInfo->m_internalDataState ) { case DQRConnectionInfo::ConnectionState_InternalHeaderByte: @@ -123,7 +123,7 @@ void DQRNetworkManager::BytesReceivedInternal(DQRConnectionInfo *connectionInfo, // We therefore have to be able to handle (and ignore) this being received more than once - hence the check of the bool above. // At this point, the connection is considered properly active from the point of view of the host. - int sessionIndex = GetSessionIndexForSmallId(uint8_t); + int sessionIndex = GetSessionIndexForSmallId(byte); if( sessionIndex != -1 ) { connectionInfo->m_channelActive[channel] = true; @@ -136,7 +136,7 @@ void DQRNetworkManager::BytesReceivedInternal(DQRConnectionInfo *connectionInfo, DQRNetworkManager::LogCommentFormat(L"Session index of %d found for player with small id %d - attempting to resolve display name\n",sessionIndex,byte); DQRNetworkPlayer *pPlayer = new DQRNetworkPlayer(this, DQRNetworkPlayer::DNP_TYPE_REMOTE, true, 0, sessionAddress); - pPlayer->SetSmallId(uint8_t); + pPlayer->SetSmallId(byte); pPlayer->SetUID(PlayerUID(m_multiplayerSession->Members->GetAt(sessionIndex)->XboxUserId->Data())); HostGamertagResolveDetails *resolveDetails = new HostGamertagResolveDetails(); diff --git a/Minecraft.Client/Platform/Windows64/Iggy/gdraw/gdraw_d3d1x_shared.inl b/Minecraft.Client/Platform/Windows64/Iggy/gdraw/gdraw_d3d1x_shared.inl index 19425d782..1ab1f13f7 100644 --- a/Minecraft.Client/Platform/Windows64/Iggy/gdraw/gdraw_d3d1x_shared.inl +++ b/Minecraft.Client/Platform/Windows64/Iggy/gdraw/gdraw_d3d1x_shared.inl @@ -2114,7 +2114,7 @@ static bool alloc_dynbuffer(U32 size) // // 1. filled polygons. these are triangulated simple polygons and thus have // roughly as many triangles as they have vertices. they use either 8- or - // 16-uint8_t vertex formats; this makes a worst case of 6 bytes of indices + // 16-byte vertex formats; this makes a worst case of 6 bytes of indices // for every 8 bytes of vertex data. // 2. strokes and edge antialiasing. they use a 16-byte vertex format and // worst-case write a "double quadstrip" which has 4 triangles for every