Core/Network: One of these days i will learn bitshifting :(
This commit is contained in:
@@ -506,7 +506,6 @@ namespace Game.Network
|
|||||||
|
|
||||||
// Check locked state for server
|
// Check locked state for server
|
||||||
AccountTypes allowedAccountType = Global.WorldMgr.GetPlayerSecurityLimit();
|
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)
|
if (allowedAccountType > AccountTypes.Player && account.game.Security < allowedAccountType)
|
||||||
{
|
{
|
||||||
SendAuthResponseError(BattlenetRpcErrorCode.Denied);
|
SendAuthResponseError(BattlenetRpcErrorCode.Denied);
|
||||||
|
|||||||
@@ -884,7 +884,7 @@ namespace Game
|
|||||||
set
|
set
|
||||||
{
|
{
|
||||||
AccountId = (uint)(value & 0xFFFFFFFF);
|
AccountId = (uint)(value & 0xFFFFFFFF);
|
||||||
connectionType = (ConnectionType)(value & (1u >> 32));
|
connectionType = (ConnectionType)((value >> 32) & 1);
|
||||||
Key = (value >> 33);
|
Key = (value >> 33);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user