From 268ae0388f95794f099ea3f1f94c0d0012ecdf2e Mon Sep 17 00:00:00 2001 From: notmatthewbeshay <92357869+NotMachow@users.noreply.github.com> Date: Wed, 11 Mar 2026 01:28:01 +1100 Subject: [PATCH] Use standard booleans in client connection checks --- Minecraft.Client/Network/ClientConnection.cpp | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Minecraft.Client/Network/ClientConnection.cpp b/Minecraft.Client/Network/ClientConnection.cpp index 963fb8d35..081fdfe9f 100644 --- a/Minecraft.Client/Network/ClientConnection.cpp +++ b/Minecraft.Client/Network/ClientConnection.cpp @@ -1619,11 +1619,11 @@ void ClientConnection::handlePreLogin(std::shared_ptr packet) fprintf(stderr, "[LOGIN-CLI] handlePreLogin entered, isHost=%d, userIdx=%d\n", (int)g_NetworkManager.IsHost(), m_userIndex); #if 1 // 4J - Check that we can play with all the players already in the game who have Friends-Only UGC set - BOOL canPlay = TRUE; - BOOL canPlayLocal = TRUE; - BOOL isAtLeastOneFriend = g_NetworkManager.IsHost(); - BOOL isFriendsWithHost = TRUE; - BOOL cantPlayContentRestricted = FALSE; + bool canPlay = true; + bool canPlayLocal = true; + bool isAtLeastOneFriend = g_NetworkManager.IsHost(); + bool isFriendsWithHost = true; + bool cantPlayContentRestricted = false; if(!g_NetworkManager.IsHost()) { @@ -1783,10 +1783,10 @@ void ClientConnection::handlePreLogin(std::shared_ptr packet) } #else // TODO - handle this kind of things for non-360 platforms - canPlay = TRUE; - canPlayLocal = TRUE; - isAtLeastOneFriend = TRUE; - cantPlayContentRestricted= FALSE; + canPlay = true; + canPlayLocal = true; + isAtLeastOneFriend = true; + cantPlayContentRestricted= false; #if ( defined __PS3__ || defined __ORBIS__ || defined __PSVITA__) @@ -3243,7 +3243,7 @@ void ClientConnection::handleUpdateProgress(std::shared_ptr packet) { - LPCWSTR string = app.GetGameRulesString(packet->m_messageId); + const wchar_t *string = app.GetGameRulesString(packet->m_messageId); if(string != NULL) { std::wstring message(string);