1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Fixed minor issues discovered during testing

This commit is contained in:
Ivan Savenko
2023-03-02 16:08:02 +02:00
parent 165f6a0944
commit b61cae5b37
4 changed files with 8 additions and 9 deletions

View File

@ -101,8 +101,6 @@ void MapViewController::update(uint32_t timeDelta)
static const double fadeInDuration = 500;
static const double heroTeleportDuration = 250;
//FIXME: remove code duplication?
if(movementContext)
{
const auto * object = context->getObject(movementContext->target);
@ -395,7 +393,7 @@ bool MapViewController::hasOngoingAnimations()
if(fadingInContext)
return true;
if (teleportContext)
if(teleportContext)
return true;
return false;