summaryrefslogtreecommitdiff
path: root/src/net/tmwa/network.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-24 19:34:08 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-24 21:41:20 +0300
commit3b537e109df901df3da4c706f827c8d3d39a7238 (patch)
treeae5a83f71954aaeb45ce3f8d609e6f4a8dc0678c /src/net/tmwa/network.cpp
parent4ef35e9ef757da1db724c5d784048601144c934c (diff)
downloadmanaverse-3b537e109df901df3da4c706f827c8d3d39a7238.tar.gz
manaverse-3b537e109df901df3da4c706f827c8d3d39a7238.tar.bz2
manaverse-3b537e109df901df3da4c706f827c8d3d39a7238.tar.xz
manaverse-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/network.cpp')
-rw-r--r--src/net/tmwa/network.cpp10
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);