summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-21 22:53:37 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-21 22:54:27 +0300
commit9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd (patch)
tree89caf6194c2cd01d845147db367c4ce888883995 /src/net/eathena
parent27a943e95196a58103814edf3e4e3cd3a60ed8cd (diff)
downloadplus-9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd.tar.gz
plus-9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd.tar.bz2
plus-9e7d90f2c93e0158e4c6312f8cf77fe9dd1583fd.tar.xz
plus-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/eathena')
-rw-r--r--src/net/eathena/maprecv.cpp5
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();
}
}