mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +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
|
||||
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)
|
||||
projectileAngle = -projectileAngle;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user