From 9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 21 Oct 2015 22:53:37 +0300 Subject: Add support for layers with conditional tiles. For enable this mode for layer need add property: TileCondition and set value to one of BlockMask bits. --- src/net/eathena/maprecv.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/maprecv.cpp b/src/net/eathena/maprecv.cpp index fbad1ce0c..e40077af8 100644 --- a/src/net/eathena/maprecv.cpp +++ b/src/net/eathena/maprecv.cpp @@ -75,17 +75,14 @@ void MapRecv::processSetTilesType(Net::MessageIn &msg) 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) { for (int y = y1; y <= y2; y ++) { for (int x = x1; x <= x2; x ++) - { - logger->log("set col %d,%d", x, y); map->setBlockMask(x, y, mask); - } } + map->updateConditionLayers(); } } -- cgit v1.2.3-70-g09d2