summaryrefslogtreecommitdiff
path: root/src/net/eathena/maphandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-02-12 01:53:13 +0300
committerAndrei Karas <akaras@inbox.ru>2019-02-12 01:53:13 +0300
commit6991434831679362687727ed152b3b06b6e671b9 (patch)
treee3f10f25254bce57d9e0f70880dccb78fc1373cb /src/net/eathena/maphandler.cpp
parentbb23068616794bb6e581f5f2dde8332c7049fe7a (diff)
downloadplus-6991434831679362687727ed152b3b06b6e671b9.tar.gz
plus-6991434831679362687727ed152b3b06b6e671b9.tar.bz2
plus-6991434831679362687727ed152b3b06b6e671b9.tar.xz
plus-6991434831679362687727ed152b3b06b6e671b9.zip
Add packet CMSG_CLIENT_VERSION 0x044a
Diffstat (limited to 'src/net/eathena/maphandler.cpp')
-rw-r--r--src/net/eathena/maphandler.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/maphandler.cpp b/src/net/eathena/maphandler.cpp
index 7054949f2..075a94a38 100644
--- a/src/net/eathena/maphandler.cpp
+++ b/src/net/eathena/maphandler.cpp
@@ -66,4 +66,12 @@ void MapHandler::camera(int action,
outMsg.writeFloat(latitude, "latitude");
}
+void MapHandler::clientVersion(const int version) const
+{
+ if (packetVersion < 20090406)
+ return;
+ createOutPacket(CMSG_CLIENT_VERSION);
+ outMsg.writeInt32(version, "version");
+}
+
} // namespace EAthena