1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix boat embarking animation

This commit is contained in:
Ivan Savenko
2025-06-18 12:08:10 +03:00
parent f3d8ae81fe
commit d3dddb2600

View File

@@ -517,6 +517,7 @@ void ApplyFirstClientNetPackVisitor::visitTryMoveHero(TryMoveHero & pack)
{
case TryMoveHero::EMBARK:
GAME->map().onBeforeHeroEmbark(h, pack.start, pack.end);
GAME->map().waitForOngoingAnimations(); // required - hero must play fade-out animation on his pre-embark position
break;
case TryMoveHero::TELEPORTATION:
GAME->map().onBeforeHeroTeleported(h, pack.start, pack.end);