aboutsummaryrefslogtreecommitdiff
path: root/actor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'actor.cpp')
-rw-r--r--actor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/actor.cpp b/actor.cpp
index c9c9694b18..dfa2f522ba 100644
--- a/actor.cpp
+++ b/actor.cpp
@@ -106,7 +106,7 @@ void Actor::setActorWalkSpeed(uint newSpeedX, uint newSpeedY)
int Scumm::getAngleFromPos(int x, int y)
{
if (_gameId == GID_DIG) {
- double temp = atan2(x, -y);
+ double temp = atan2((double)x, (double)-y);
return Scumm::normalizeAngle((int)(temp * 180 / 3.1415926535));
} else {
if (abs(y) * 2 < abs(x)) {