diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-01 12:38:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:54 +0300 |
commit | 11d80e856811ceddec805ce68b0a17b13f5cf25e (patch) | |
tree | 31e4c919f5acd2e20b5f805bbe8524b1d0f9f754 /src/net/eathena/messagein.cpp | |
parent | a15146e08d00f9986edfde7a15a70790b64cc1ce (diff) | |
download | manaplus-11d80e856811ceddec805ce68b0a17b13f5cf25e.tar.gz manaplus-11d80e856811ceddec805ce68b0a17b13f5cf25e.tar.bz2 manaplus-11d80e856811ceddec805ce68b0a17b13f5cf25e.tar.xz manaplus-11d80e856811ceddec805ce68b0a17b13f5cf25e.zip |
In debug packets logging also display offset.
Diffstat (limited to 'src/net/eathena/messagein.cpp')
-rw-r--r-- | src/net/eathena/messagein.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/messagein.cpp b/src/net/eathena/messagein.cpp index e3918dd3a..60d89980d 100644 --- a/src/net/eathena/messagein.cpp +++ b/src/net/eathena/messagein.cpp @@ -59,9 +59,10 @@ int16_t MessageIn::readInt16(const char *const str) memcpy(&value, mData + static_cast<size_t>(mPos), sizeof(int16_t)); #endif } + DEBUGLOG2("readInt16: " + toStringPrint(static_cast<int>(value)), + mPos, str); mPos += 2; PacketCounters::incInBytes(2); - DEBUGLOG2("readInt16: " + toStringPrint(static_cast<int>(value)), str); return value; } @@ -78,9 +79,9 @@ int32_t MessageIn::readInt32(const char *const str) memcpy(&value, mData + static_cast<size_t>(mPos), sizeof(int32_t)); #endif } + DEBUGLOG2("readInt32: " + toStringPrint(value), mPos, str); mPos += 4; PacketCounters::incInBytes(4); - DEBUGLOG2("readInt32: " + toStringPrint(value), str); return value; } |