diff options
Diffstat (limited to 'actor.cpp')
-rw-r--r-- | actor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |