diff options
-rw-r--r-- | src/logger.h | 4 | ||||
-rw-r--r-- | src/net/tmwa/beingrecv.cpp | 3 |
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?"); |