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:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user