mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Compile fix.
This commit is contained in:
parent
2a469d4ffc
commit
f39ad093b9
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user