1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Compile fix.

This commit is contained in:
DjWarmonger 2013-04-04 19:54:58 +00:00
parent 2a469d4ffc
commit f39ad093b9

View File

@ -751,7 +751,7 @@ bool CShootingAnimation::init()
// to properly translate coordinates when shooter is rotated // to properly translate coordinates when shooter is rotated
int multiplier = spi.reverse ? -1 : 1; int multiplier = spi.reverse ? -1 : 1;
double projectileAngle = atan2(fabs(destPos.y - fromPos.y), fabs(destPos.x - fromPos.x)); double projectileAngle = atan2(fabs((double)destPos.y - fromPos.y), fabs((double)destPos.x - fromPos.x));
if(shooter->position < dest) if(shooter->position < dest)
projectileAngle = -projectileAngle; projectileAngle = -projectileAngle;