mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Fix map grid visibility on game load
This commit is contained in:
@ -185,9 +185,16 @@ void MapViewController::tick(uint32_t timeDelta)
|
||||
fadingInContext->progress = std::min( 1.0, fadingInContext->progress);
|
||||
}
|
||||
|
||||
if (adventureContext)
|
||||
adventureContext->animationTime += timeDelta;
|
||||
|
||||
updateState();
|
||||
}
|
||||
|
||||
void MapViewController::updateState()
|
||||
{
|
||||
if(adventureContext)
|
||||
{
|
||||
adventureContext->animationTime += timeDelta;
|
||||
adventureContext->settingsSessionSpectate = settings["session"]["spectate"].Bool();
|
||||
adventureContext->settingsAdventureObjectAnimation = settings["adventure"]["objectAnimation"].Bool();
|
||||
adventureContext->settingsAdventureTerrainAnimation = settings["adventure"]["terrainAnimation"].Bool();
|
||||
@ -511,6 +518,7 @@ void MapViewController::activateAdventureContext(uint32_t animationTime)
|
||||
adventureContext = std::make_shared<MapRendererAdventureContext>(*state);
|
||||
adventureContext->animationTime = animationTime;
|
||||
context = adventureContext;
|
||||
updateState();
|
||||
}
|
||||
|
||||
void MapViewController::activateAdventureContext()
|
||||
|
Reference in New Issue
Block a user