From e13ebc226f3f0ac937f880df270e30ad2aa5d450 Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 25 Jul 2007 16:45:09 +0000 Subject: * Added support for character rename packet (only dummy code for now) * Added support for langtype-12 char deletion packet (tested, works) * Synchronized txt/sql charserver code a bit * Adjusted motd.txt to not crash new clients * Removed some dead code from the charserver (see r352) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10909 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/socket.c') diff --git a/src/common/socket.c b/src/common/socket.c index 87740ed65..221a0289b 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -1153,9 +1153,9 @@ uint32 str2ip(const char* ip_str) // Reorders bytes from network to little endian (Windows). // Neccessary for sending port numbers to the RO client until Gravity notices that they forgot ntohs() calls. -uint16 ntows(uint16 neshort) +uint16 ntows(uint16 netshort) { - return ((neshort & 0xFF) << 8) | ((neshort & 0xFF00) >> 8); + return ((netshort & 0xFF) << 8) | ((netshort & 0xFF00) >> 8); } #ifdef SEND_SHORTLIST -- cgit v1.2.3-60-g2f50