summaryrefslogtreecommitdiff
path: root/src/resources/map/map.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/map/map.cpp')
-rw-r--r--src/resources/map/map.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp
index 327df358c..759951bcf 100644
--- a/src/resources/map/map.cpp
+++ b/src/resources/map/map.cpp
@@ -1716,6 +1716,16 @@ void Map::updateConditionLayers() restrict2
}
}
+void Map::preCacheLayers() restrict2
+{
+ FOR_EACH (LayersCIter, it, mLayers)
+ {
+ MapLayer *restrict const layer = *it;
+ if (layer)
+ layer->updateCache(mWidth, mHeight);
+ }
+}
+
int Map::calcMemoryLocal() const
{
return static_cast<int>(sizeof(Map) +