mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
* bug 1165 fixed
This commit is contained in:
parent
5b0c6059e2
commit
4ae4b998a3
@ -705,6 +705,13 @@ bool CShootingAnimation::init()
|
||||
return false;
|
||||
}
|
||||
|
||||
//reverse unit if necessary
|
||||
if (attackingStack && owner->curInt->cb->isToReverse(attackingStack->position, attackedStack->position, owner->creDir[attackingStack->ID], attackingStack->doubleWide(), owner->creDir[attackedStack->ID]))
|
||||
{
|
||||
owner->addNewAnim(new CReverseAnimation(owner, attackingStack, attackingStack->position, true));
|
||||
return false;
|
||||
}
|
||||
|
||||
// Create the projectile animation
|
||||
|
||||
double projectileAngle; //in radians; if positive, projectiles goes up
|
||||
|
Loading…
Reference in New Issue
Block a user