Bläddra i källkod

* bug 1165 fixed

mateuszb 12 år sedan
förälder
incheckning
4ae4b998a3
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. 7 0
      client/BattleInterface/CBattleAnimations.cpp

+ 7 - 0
client/BattleInterface/CBattleAnimations.cpp

@@ -705,6 +705,13 @@ bool CShootingAnimation::init()
 		return false;
 		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
 	// Create the projectile animation
 
 
 	double projectileAngle; //in radians; if positive, projectiles goes up
 	double projectileAngle; //in radians; if positive, projectiles goes up