diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-21 22:53:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-21 22:54:27 +0300 |
commit | 9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd (patch) | |
tree | 89caf6194c2cd01d845147db367c4ce888883995 /src/net | |
parent | 27a943e95196a58103814edf3e4e3cd3a60ed8cd (diff) | |
download | manaplus-9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd.tar.gz manaplus-9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd.tar.bz2 manaplus-9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd.tar.xz manaplus-9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd.zip |
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.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/maprecv.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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(); } } |