Fix math error in ConnectToKey. Would not allow anyone over account id 1 to enter game.

This commit is contained in:
hondacrx
2017-06-22 12:49:52 -04:00
parent 8aec498b06
commit bedfbd46e8
+4 -4
View File
@@ -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);
} }
} }