From e3e3846a15397a29d8366a5fe2beac85b2d9a5cc Mon Sep 17 00:00:00 2001 From: lotodore Date: Tue, 25 Nov 2008 23:28:44 +0000 Subject: [PATCH] Fixed byte order issue with player leave reason. Works now. --- src/net/common/netpacket.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/net/common/netpacket.cpp b/src/net/common/netpacket.cpp index f152f504..5e763afc 100644 --- a/src/net/common/netpacket.cpp +++ b/src/net/common/netpacket.cpp @@ -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; } }