From 3e1eec6460461242ff6548f8c542e0c020d18c4a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 17 Oct 2015 15:34:19 +0300 Subject: Add layer field to packet SMSG_MAP_SET_TILES_TYPE. --- src/net/eathena/maprecv.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net/eathena/maprecv.cpp') 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(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) -- cgit v1.2.3-60-g2f50