mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Merge beta -> develop
This commit is contained in:
@ -63,7 +63,7 @@ void MapViewController::setViewCenter(const Point & position, int level)
|
||||
model->setViewCenter(betterPosition);
|
||||
model->setLevel(std::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());
|
||||
}
|
||||
|
||||
@ -154,6 +154,7 @@ void MapViewController::updateBefore(uint32_t timeDelta)
|
||||
adventureContext->settingShowGrid = settings["gameTweaks"]["showGrid"].Bool();
|
||||
adventureContext->settingShowVisitable = settings["session"]["showVisitable"].Bool();
|
||||
adventureContext->settingShowBlocked = settings["session"]["showBlocked"].Bool();
|
||||
adventureContext->settingSpellRange = settings["session"]["showSpellRange"].Bool();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user