diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-11 20:34:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-11 20:34:34 +0300 |
commit | 58adb06d27a8fc69d4010bf61b4a6c9841fa1c5c (patch) | |
tree | 9c3c0a8e3e18865786351e275eaf1cdde9e46054 /src/net/eathena/adminhandler.cpp | |
parent | 2314f78e49bcf92c69b7148cc8e771de01d161cb (diff) | |
download | mv-58adb06d27a8fc69d4010bf61b4a6c9841fa1c5c.tar.gz mv-58adb06d27a8fc69d4010bf61b4a6c9841fa1c5c.tar.bz2 mv-58adb06d27a8fc69d4010bf61b4a6c9841fa1c5c.tar.xz mv-58adb06d27a8fc69d4010bf61b4a6c9841fa1c5c.zip |
eathena: add partial support for packet SMSG_ADMIN_SET_TILE_TYPE 0x0192.
Diffstat (limited to 'src/net/eathena/adminhandler.cpp')
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index ca26c7823..6b584269c 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -51,6 +51,7 @@ AdminHandler::AdminHandler() : { SMSG_ADMIN_KICK_ACK, SMSG_ADMIN_GET_LOGIN_ACK, + SMSG_ADMIN_SET_TILE_TYPE, 0 }; handledMessages = _messages; @@ -70,6 +71,9 @@ void AdminHandler::handleMessage(Net::MessageIn &msg) case SMSG_ADMIN_GET_LOGIN_ACK: processAdminGetLoginAck(msg); break; + case SMSG_ADMIN_SET_TILE_TYPE: + processSetTileType(msg); + break; default: break; } @@ -181,4 +185,13 @@ void AdminHandler::processAdminGetLoginAck(Net::MessageIn &msg) msg.readString(24, "login"); } +void AdminHandler::processSetTileType(Net::MessageIn &msg) +{ + // +++ here need set collision tile for map + msg.readInt16("x"); + msg.readInt16("y"); + msg.readInt16("type"); + msg.readString(16, "map name"); +} + } // namespace EAthena |