1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

fix boat animation GAME->map().onObjectFadeOut triggered before waiting for the previously trigered animation to finish

This commit is contained in:
Mircea TheHonestCTO
2025-09-06 05:25:49 +02:00
parent d085241007
commit 91bf006b40

View File

@@ -448,7 +448,10 @@ void ApplyFirstClientNetPackVisitor::visitRemoveObject(RemoveObject & pack)
GAME->map().onObjectFadeOut(o, pack.initiator);
if (h && h->inBoat())
{
GAME->map().waitForOngoingAnimations();
GAME->map().onObjectFadeOut(h->getBoat(), pack.initiator);
}
//notify interfaces about removal
for(auto i=cl.playerint.begin(); i!=cl.playerint.end(); i++)