diff options
Diffstat (limited to 'src/resources/map/map.cpp')
-rw-r--r-- | src/resources/map/map.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index de6090dc2..d05bb2c23 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -1645,3 +1645,17 @@ void Map::setActorsFix(const int x, const int y) if (mFringeLayer) mFringeLayer->setActorsFix(y); } + +void Map::updateConditionLayers() +{ + mRedrawMap = true; + + FOR_EACH (LayersCIter, it, mLayers) + { + MapLayer *const layer = *it; + if (!layer || layer->mTileCondition == -1) + continue; + layer->updateConditionTiles(mMetaTiles, + mWidth, mHeight); + } +} |