From 3b537e109df901df3da4c706f827c8d3d39a7238 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 24 Jun 2012 19:34:08 +0300 Subject: Add basic support for eathena stable. Can register, create char, connect to map server and get map info. --- src/net/tmwa/network.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/net/tmwa') 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(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); -- cgit v1.2.3-70-g09d2