summaryrefslogtreecommitdiff
path: root/src/net/ea/maprecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-12-30 17:08:56 +0300
committerAndrei Karas <akaras@inbox.ru>2016-12-30 17:30:05 +0300
commit728223b59f09d1460a092b5fd467c3191fcb46c9 (patch)
tree489c994a98acddb29d8c1f891a27f50bbd552d2e /src/net/ea/maprecv.cpp
parent0c06037af71273481958ba8587bbb4082d1ed822 (diff)
downloadmanaverse-728223b59f09d1460a092b5fd467c3191fcb46c9.tar.gz
manaverse-728223b59f09d1460a092b5fd467c3191fcb46c9.tar.bz2
manaverse-728223b59f09d1460a092b5fd467c3191fcb46c9.tar.xz
manaverse-728223b59f09d1460a092b5fd467c3191fcb46c9.zip
Improve drawing map layers.
Pre cache repeated tiles count and width.
Diffstat (limited to 'src/net/ea/maprecv.cpp')
-rw-r--r--src/net/ea/maprecv.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net/ea/maprecv.cpp b/src/net/ea/maprecv.cpp
index a42af3e9b..b2dd5615b 100644
--- a/src/net/ea/maprecv.cpp
+++ b/src/net/ea/maprecv.cpp
@@ -52,6 +52,7 @@ void MapRecv::processSetTilesType(Net::MessageIn &msg)
map->setBlockMask(x, y, mask);
}
map->updateConditionLayers();
+ map->preCacheLayers();
}
}