Fixed byte order issue with player leave reason. Works now.

This commit is contained in:
lotodore
2008-11-25 23:28:44 +00:00
parent e3671830cb
commit e3e3846a15
+3 -3
View File
@@ -3123,13 +3123,13 @@ NetPacketPlayerLeft::GetData(NetPacketPlayerLeft::Data &outData) const
switch(ntohs(tmpData->leaveReason))
{
case NET_LEFT_ON_REQUEST :
outData.removeReason = ntohs(NTF_NET_REMOVED_ON_REQUEST);
outData.removeReason = NTF_NET_REMOVED_ON_REQUEST;
break;
case NET_LEFT_KICKED :
outData.removeReason = ntohs(NTF_NET_REMOVED_KICKED);
outData.removeReason = NTF_NET_REMOVED_KICKED;
break;
default :
outData.removeReason = ntohs(NTF_NET_INTERNAL);
outData.removeReason = NTF_NET_INTERNAL;
break;
}
}