summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-01 18:06:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-01 18:06:39 +0300
commite6977ace705cea79b5661ca766ae07dd435f0ef6 (patch)
tree8d305a3436b7d2ee385cd9082131c84146c0615c
parent249550563325af4043ed864f676c18d386428b19 (diff)
downloadmv-e6977ace705cea79b5661ca766ae07dd435f0ef6.tar.gz
mv-e6977ace705cea79b5661ca766ae07dd435f0ef6.tar.bz2
mv-e6977ace705cea79b5661ca766ae07dd435f0ef6.tar.xz
mv-e6977ace705cea79b5661ca766ae07dd435f0ef6.zip
Add debug messages to some packets.
-rw-r--r--src/logger.h4
-rw-r--r--src/net/tmwa/beingrecv.cpp3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/logger.h b/src/logger.h
index 52f1b5a86..51966b5e5 100644
--- a/src/logger.h
+++ b/src/logger.h
@@ -39,10 +39,14 @@
#define DEBUGLOG2(str, pos, comment) \
if (logger && !mIgnore) \
logger->dlog2(str, pos, comment)
+#define DEBUGLOGSTR(str) \
+ if (logger) \
+ logger->dlog(str)
#define IGNOREDEBUGLOG mIgnore = Net::isIgnorePacket(mId)
#else
#define DEBUGLOG(str) {}
#define DEBUGLOG2(str, comment) {}
+#define DEBUGLOGSTR(str)
#define IGNOREDEBUGLOG {}
#endif
diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp
index f46ff373f..1d4fd9648 100644
--- a/src/net/tmwa/beingrecv.cpp
+++ b/src/net/tmwa/beingrecv.cpp
@@ -1152,6 +1152,7 @@ void BeingRecv::processBeingChangeDirection(Net::MessageIn &msg)
if (!dstBeing)
{
+ DEBUGLOGSTR("invisible player?");
msg.readInt16("unused");
msg.readUInt8("direction");
BLOCK_END("BeingRecv::processBeingChangeDirection");
@@ -1182,7 +1183,7 @@ void BeingRecv::processPlaterStatusChange(Net::MessageIn &msg)
Being *const dstBeing = actorManager->findBeing(id);
if (!dstBeing)
{
- logger->log("invisible player?");
+ DEBUGLOGSTR("invisible player?");
msg.readInt16("stun mode");
msg.readInt16("status effect");
msg.readInt16("opt?");