From 15f4f0d6fecf4dc38ae1ec07c0abb04c20e22c1e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 31 Mar 2016 23:33:24 +0300 Subject: Set packet version based on packet id and current packet version into version in MessageIn. Only for hercules. --- src/net/messagein.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/net/messagein.h') diff --git a/src/net/messagein.h b/src/net/messagein.h index 613eca09e..44d6a9aab 100644 --- a/src/net/messagein.h +++ b/src/net/messagein.h @@ -122,6 +122,9 @@ class MessageIn notfinal static uint8_t fromServerDirection(const uint8_t serverDir) A_WARN_UNUSED; + unsigned int getVersion() const A_WARN_UNUSED + { return mVersion; } + protected: /** * Constructor. @@ -137,6 +140,7 @@ class MessageIn notfinal * reading it. */ unsigned int mPos; + unsigned int mVersion; uint16_t mId; /**< The message ID. */ bool mIgnore; }; -- cgit v1.2.3-60-g2f50