Core/Network: One of these days i will learn bitshifting :(

This commit is contained in:
hondacrx
2018-02-05 15:04:58 -05:00
parent 5c045124fe
commit da5fd47650
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -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);
+1 -1
View File
@@ -884,7 +884,7 @@ namespace Game
set
{
AccountId = (uint)(value & 0xFFFFFFFF);
connectionType = (ConnectionType)(value & (1u >> 32));
connectionType = (ConnectionType)((value >> 32) & 1);
Key = (value >> 33);
}
}