From da5fd47650e2577ab85504fc479286e0813eb2f5 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Mon, 5 Feb 2018 15:04:58 -0500 Subject: [PATCH] Core/Network: One of these days i will learn bitshifting :( --- Source/Game/Network/WorldSocket.cs | 1 - Source/Game/Server/WorldSession.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Game/Network/WorldSocket.cs b/Source/Game/Network/WorldSocket.cs index 34d47e50d..c25da6f1c 100644 --- a/Source/Game/Network/WorldSocket.cs +++ b/Source/Game/Network/WorldSocket.cs @@ -506,7 +506,6 @@ namespace Game.Network // Check locked state for server AccountTypes allowedAccountType = Global.WorldMgr.GetPlayerSecurityLimit(); - Log.outDebug(LogFilter.Network, "Allowed Level: {0} Player Level {1}", allowedAccountType, account.game.Security); if (allowedAccountType > AccountTypes.Player && account.game.Security < allowedAccountType) { SendAuthResponseError(BattlenetRpcErrorCode.Denied); diff --git a/Source/Game/Server/WorldSession.cs b/Source/Game/Server/WorldSession.cs index 8c50a40e9..fdaa5b7e5 100644 --- a/Source/Game/Server/WorldSession.cs +++ b/Source/Game/Server/WorldSession.cs @@ -884,7 +884,7 @@ namespace Game set { AccountId = (uint)(value & 0xFFFFFFFF); - connectionType = (ConnectionType)(value & (1u >> 32)); + connectionType = (ConnectionType)((value >> 32) & 1); Key = (value >> 33); } }