Fix math error in ConnectToKey. Would not allow anyone over account id 1 to enter game.
This commit is contained in:
@@ -881,12 +881,12 @@ namespace Game
|
|||||||
{
|
{
|
||||||
public ulong Raw
|
public ulong Raw
|
||||||
{
|
{
|
||||||
get { return ((ulong)AccountId) | ((ulong)connectionType << 32) | (Key << 33); }
|
get { return ((ulong)AccountId | ((ulong)connectionType << 32) | (Key << 33)); }
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
AccountId = (uint)(value & ((1 << 33) - 1));
|
AccountId = (uint)(value & 0xFFFFFFFF);
|
||||||
connectionType = (ConnectionType)(uint)((value >> 32) & ((1 << 1) - 1));
|
connectionType = (ConnectionType)(value & (1u >> 32));
|
||||||
Key = (uint)(value >> 33) & ((1 << 30) - 1);
|
Key = (value >> 33);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user