diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-06-26 22:57:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-06-26 22:57:13 +0300 |
commit | 007912d74e1e067ddd1566429aabfa5970b0525a (patch) | |
tree | d5409753342971c42fb364bd5d5cc70773ef0876 /src/net/eathena/playerhandler.cpp | |
parent | 653431655169659331999f4f2d63aa05cfcf3134 (diff) | |
download | manaverse-007912d74e1e067ddd1566429aabfa5970b0525a.tar.gz manaverse-007912d74e1e067ddd1566429aabfa5970b0525a.tar.bz2 manaverse-007912d74e1e067ddd1566429aabfa5970b0525a.tar.xz manaverse-007912d74e1e067ddd1566429aabfa5970b0525a.zip |
Update packet CMSG_SET_SHORTCUTS
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 551ab0144..d3b0e6803 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -449,11 +449,17 @@ void PlayerHandler::updateStatus(const uint8_t status) const } void PlayerHandler::setShortcut(const int idx, + const int tab, const uint8_t type, const int id, const int level) const { createOutPacket(CMSG_SET_SHORTCUTS); + if (packetVersionMain >= 20190522 || + packetVersionRe >= 20190508) + { + outMsg.writeInt16(CAST_S16(tab), "tab"); + } outMsg.writeInt16(CAST_S16(idx), "index"); outMsg.writeInt8(CAST_S8(type), "type"); outMsg.writeInt32(id, "id"); |