1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

Fix map freeze on enemy turn

This commit is contained in:
Ivan Savenko
2023-05-19 13:22:18 +03:00
parent 9817aaa466
commit be2e101c8c
2 changed files with 4 additions and 2 deletions

View File

@ -147,6 +147,10 @@ void AdventureMapInterface::show(SDL_Surface * to)
void AdventureMapInterface::tick(uint32_t msPassed)
{
handleMapScrollingUpdate(msPassed);
// we want animations to be active during enemy turn but map itself to be non-interactive
// so call timer update directly on inactive element
widget->getMapView()->tick(msPassed);
}
void AdventureMapInterface::handleMapScrollingUpdate(uint32_t timePassed)