Fixed byte order issue with player leave reason. Works now.
This commit is contained in:
@@ -3123,13 +3123,13 @@ NetPacketPlayerLeft::GetData(NetPacketPlayerLeft::Data &outData) const
|
|||||||
switch(ntohs(tmpData->leaveReason))
|
switch(ntohs(tmpData->leaveReason))
|
||||||
{
|
{
|
||||||
case NET_LEFT_ON_REQUEST :
|
case NET_LEFT_ON_REQUEST :
|
||||||
outData.removeReason = ntohs(NTF_NET_REMOVED_ON_REQUEST);
|
outData.removeReason = NTF_NET_REMOVED_ON_REQUEST;
|
||||||
break;
|
break;
|
||||||
case NET_LEFT_KICKED :
|
case NET_LEFT_KICKED :
|
||||||
outData.removeReason = ntohs(NTF_NET_REMOVED_KICKED);
|
outData.removeReason = NTF_NET_REMOVED_KICKED;
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
outData.removeReason = ntohs(NTF_NET_INTERNAL);
|
outData.removeReason = NTF_NET_INTERNAL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user