diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-06-24 19:34:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-06-24 21:41:20 +0300 |
commit | 3b537e109df901df3da4c706f827c8d3d39a7238 (patch) | |
tree | ae5a83f71954aaeb45ce3f8d609e6f4a8dc0678c /src/net/tmwa | |
parent | 4ef35e9ef757da1db724c5d784048601144c934c (diff) | |
download | mv-3b537e109df901df3da4c706f827c8d3d39a7238.tar.gz mv-3b537e109df901df3da4c706f827c8d3d39a7238.tar.bz2 mv-3b537e109df901df3da4c706f827c8d3d39a7238.tar.xz mv-3b537e109df901df3da4c706f827c8d3d39a7238.zip |
Add basic support for eathena stable.
Can register, create char, connect to map server and get map info.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/network.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/tmwa/network.cpp b/src/net/tmwa/network.cpp index c25774d9b..c1020ebeb 100644 --- a/src/net/tmwa/network.cpp +++ b/src/net/tmwa/network.cpp @@ -38,6 +38,8 @@ #include "debug.h" +namespace TmwAthena +{ /** Warning: buffers and other variables are shared, so there can be only one connection active at a time */ @@ -90,9 +92,6 @@ short packet_lengths[] = const unsigned int BUFFER_SIZE = 655360; -namespace TmwAthena -{ - int networkThread(void *data) { Network *network = static_cast<Network*>(data); @@ -345,8 +344,9 @@ MessageIn Network::getNextMessage() if (len == -1) len = readWord(2); -#ifdef DEBUG - logger->log("Received packet 0x%x of length %d\n", msgId, len); +#ifdef ENABLEDEBUGLOG +// logger->dlog(strprintf("Received packet 0x%x of length %d\n", +// msgId, len)); #endif MessageIn msg(mInBuffer, len); |