summaryrefslogtreecommitdiff
path: root/src/net/eathena
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
parentbb23068616794bb6e581f5f2dde8332c7049fe7a (diff)
downloadmanaplus-6991434831679362687727ed152b3b06b6e671b9.tar.gz
manaplus-6991434831679362687727ed152b3b06b6e671b9.tar.bz2
manaplus-6991434831679362687727ed152b3b06b6e671b9.tar.xz
manaplus-6991434831679362687727ed152b3b06b6e671b9.zip
Add packet CMSG_CLIENT_VERSION 0x044a
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/maphandler.cpp8
-rw-r--r--src/net/eathena/maphandler.h2
-rw-r--r--src/net/eathena/packetsout.inc7
3 files changed, 17 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
diff --git a/src/net/eathena/maphandler.h b/src/net/eathena/maphandler.h
index 52f50add4..2895087e4 100644
--- a/src/net/eathena/maphandler.h
+++ b/src/net/eathena/maphandler.h
@@ -43,6 +43,8 @@ class MapHandler final : public Net::MapHandler
float range,
float rotation,
float latitude) const override final;
+
+ void clientVersion(const int version) const override final;
};
} // namespace EAthena
diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc
index e18283736..6b45709ef 100644
--- a/src/net/eathena/packetsout.inc
+++ b/src/net/eathena/packetsout.inc
@@ -354,6 +354,7 @@ packet(CMSG_SKILL_USE_BEING_STOP, 0x0000, 0, nullptr);
packet(CMSG_NPC_BARTER_CLOSE, 0x0000, 0, nullptr);
packet(CMSG_CAMERA_INFO, 0x0000, 0, nullptr);
packet(CMSG_NPC_BARTER_BUY, 0x0000, 0, nullptr);
+packet(CMSG_CLIENT_VERSION, 0x0000, 0, nullptr);
#else
// 20040713
if (packetVersion >= 20040713)
@@ -586,6 +587,12 @@ if (packetVersion >= 20081210)
packet(CMSG_SKILL_SELECT_MENU, 0x0443, 8, clif->pSkillSelectMenu);
}
+// 20090406
+if (packetVersion >= 20090406)
+{
+ packet(CMSG_CLIENT_VERSION, 0x044a, 6, clif->pClientVersion);
+}
+
// 20090520
if (packetVersion >= 20090520)
{