summaryrefslogtreecommitdiff
path: root/src/net/eathena/maprecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/maprecv.cpp')
-rw-r--r--src/net/eathena/maprecv.cpp4
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)