mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
fix boat animation GAME->map().onObjectFadeOut triggered before waiting for the previously trigered animation to finish
This commit is contained in:
@@ -448,7 +448,10 @@ void ApplyFirstClientNetPackVisitor::visitRemoveObject(RemoveObject & pack)
|
|||||||
|
|
||||||
GAME->map().onObjectFadeOut(o, pack.initiator);
|
GAME->map().onObjectFadeOut(o, pack.initiator);
|
||||||
if (h && h->inBoat())
|
if (h && h->inBoat())
|
||||||
|
{
|
||||||
|
GAME->map().waitForOngoingAnimations();
|
||||||
GAME->map().onObjectFadeOut(h->getBoat(), pack.initiator);
|
GAME->map().onObjectFadeOut(h->getBoat(), pack.initiator);
|
||||||
|
}
|
||||||
|
|
||||||
//notify interfaces about removal
|
//notify interfaces about removal
|
||||||
for(auto i=cl.playerint.begin(); i!=cl.playerint.end(); i++)
|
for(auto i=cl.playerint.begin(); i!=cl.playerint.end(); i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user