1
0
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:
mateuszb 2013-01-31 17:52:10 +00:00
parent 5b0c6059e2
commit 4ae4b998a3

View File

@ -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