summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-07-25 16:45:09 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-07-25 16:45:09 +0000
commite13ebc226f3f0ac937f880df270e30ad2aa5d450 (patch)
treec6f3247406bae5539cd32c09c36e1d2c35c4de2c /src/common
parent90cf762d98ad0bcfd84302824ebe093987d0be97 (diff)
downloadhercules-e13ebc226f3f0ac937f880df270e30ad2aa5d450.tar.gz
hercules-e13ebc226f3f0ac937f880df270e30ad2aa5d450.tar.bz2
hercules-e13ebc226f3f0ac937f880df270e30ad2aa5d450.tar.xz
hercules-e13ebc226f3f0ac937f880df270e30ad2aa5d450.zip
* 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
Diffstat (limited to 'src/common')
-rw-r--r--src/common/socket.c4
1 files changed, 2 insertions, 2 deletions
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