diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-17 15:34:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-17 15:34:19 +0300 |
commit | 3e1eec6460461242ff6548f8c542e0c020d18c4a (patch) | |
tree | 2e26b671c35a22a88413de48d55d02a1b30107d1 /src/net/eathena/maprecv.cpp | |
parent | ec67274fe96652e288dbeadc41d756f49a4b8779 (diff) | |
download | mv-3e1eec6460461242ff6548f8c542e0c020d18c4a.tar.gz mv-3e1eec6460461242ff6548f8c542e0c020d18c4a.tar.bz2 mv-3e1eec6460461242ff6548f8c542e0c020d18c4a.tar.xz mv-3e1eec6460461242ff6548f8c542e0c020d18c4a.zip |
Add layer field to packet SMSG_MAP_SET_TILES_TYPE.
Diffstat (limited to 'src/net/eathena/maprecv.cpp')
-rw-r--r-- | src/net/eathena/maprecv.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/maprecv.cpp b/src/net/eathena/maprecv.cpp index 3843838bd..fbad1ce0c 100644 --- a/src/net/eathena/maprecv.cpp +++ b/src/net/eathena/maprecv.cpp @@ -70,8 +70,10 @@ void MapRecv::processSetTilesType(Net::MessageIn &msg) const int x2 = msg.readInt16("x2"); const int y2 = msg.readInt16("y2"); const BlockTypeT mask = static_cast<BlockTypeT>(msg.readInt32("mask")); + const int layer = msg.readInt32("layer"); const std::string name = msg.readString(16, "map name"); - + if (layer) + return; Map *const map = viewport->getMap(); // logger->log("map test name: %s, mask %d", map->getGatName().c_str(), (int)mask); if (map && map->getGatName() == name) |