diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-31 00:35:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:53 +0300 |
commit | 86273941131b643ba470a1604e4f2d808306d42c (patch) | |
tree | a9fefc41a1bfd1fdd843bb5a8218007af8f2b9ed /src/net/eathena/network.cpp | |
parent | b2db639b28d2183d18ba189d5b937605e0a73ae1 (diff) | |
download | mv-86273941131b643ba470a1604e4f2d808306d42c.tar.gz mv-86273941131b643ba470a1604e4f2d808306d42c.tar.bz2 mv-86273941131b643ba470a1604e4f2d808306d42c.tar.xz mv-86273941131b643ba470a1604e4f2d808306d42c.zip |
In eathena remove packet SMSG_SERVER_VERSION_RESPONSE.
Diffstat (limited to 'src/net/eathena/network.cpp')
-rw-r--r-- | src/net/eathena/network.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/net/eathena/network.cpp b/src/net/eathena/network.cpp index ab83de085..76c4702d6 100644 --- a/src/net/eathena/network.cpp +++ b/src/net/eathena/network.cpp @@ -272,11 +272,7 @@ void Network::dispatchMessages() SDL_mutexP(mMutexIn); const unsigned int msgId = readWord(0); int len = -1; - if (msgId == SMSG_SERVER_VERSION_RESPONSE) - { - len = 10; - } - else if (msgId == SMSG_UPDATE_HOST2) + if (msgId == SMSG_UPDATE_HOST2) { len = -1; } @@ -322,9 +318,7 @@ bool Network::messageReady() if (mInSize >= 2) { const int msgId = readWord(0); - if (msgId == SMSG_SERVER_VERSION_RESPONSE) - len = 10; - else if (msgId == SMSG_UPDATE_HOST2) + if (msgId == SMSG_UPDATE_HOST2) len = -1; else len = packet_lengths[msgId]; |