summaryrefslogtreecommitdiff
path: root/src/net/messagein.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-31 23:33:24 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-01 00:08:29 +0300
commit15f4f0d6fecf4dc38ae1ec07c0abb04c20e22c1e (patch)
tree8428836351e6ea64d8f19f9324fd58bcde698ee9 /src/net/messagein.h
parent9b06b6b56522f23eb3752d3a1e099c75ba130fc9 (diff)
downloadmanaplus-15f4f0d6fecf4dc38ae1ec07c0abb04c20e22c1e.tar.gz
manaplus-15f4f0d6fecf4dc38ae1ec07c0abb04c20e22c1e.tar.bz2
manaplus-15f4f0d6fecf4dc38ae1ec07c0abb04c20e22c1e.tar.xz
manaplus-15f4f0d6fecf4dc38ae1ec07c0abb04c20e22c1e.zip
Set packet version based on packet id and current packet version into version in MessageIn.
Only for hercules.
Diffstat (limited to 'src/net/messagein.h')
-rw-r--r--src/net/messagein.h4
1 files changed, 4 insertions, 0 deletions
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;
};