1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Do not update minimap using puzzle map data

This commit is contained in:
Ivan Savenko
2023-04-24 17:16:55 +03:00
parent fa156568c4
commit d3c1c92a03
2 changed files with 3 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ void MapViewController::setViewCenter(const Point & position, int level)
model->setViewCenter(betterPosition);
model->setLevel(vstd::clamp(level, 0, context->getMapSize().z));
if(adventureInt) // may be called before adventureInt is initialized
if(adventureInt && !puzzleMapContext) // may be called before adventureInt is initialized
adventureInt->onMapViewMoved(model->getTilesTotalRect(), model->getLevel());
}