mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-29 21:56:54 +02:00
Fix animation ordering for moving with rotation
This commit is contained in:
parent
bbabc991ee
commit
9e5f72166b
@ -500,7 +500,10 @@ void BattleStacksController::stackMoved(const CStack *stack, std::vector<BattleH
|
||||
assert(owner.getAnimationCondition(EAnimationEvents::ACTION) == false);
|
||||
|
||||
if(shouldRotate(stack, stack->getPosition(), destHex[0]))
|
||||
addNewAnim(new ReverseAnimation(owner, stack, destHex[0]));
|
||||
{
|
||||
addNewAnim(new ReverseAnimation(owner, stack, stack->getPosition()));
|
||||
owner.waitForAnimationCondition(EAnimationEvents::ACTION, false);
|
||||
}
|
||||
|
||||
addNewAnim(new MovementStartAnimation(owner, stack));
|
||||
owner.waitForAnimationCondition(EAnimationEvents::ACTION, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user