Skip to content

Commit

Permalink
Crossing the date line caused the camera to spin: fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vilcans committed Apr 22, 2012
1 parent b6e9543 commit c02d751
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game.coffee
Expand Up @@ -129,8 +129,8 @@ class window.Game
@collideShips()

if @selectedShip and @followingSelected
@cameraLongitude += wrapAngle((@selectedShip.longitude - @cameraLongitude) * CAMERA_SPEED)
@cameraLatitude += wrapAngle((@selectedShip.latitude - @cameraLatitude) * CAMERA_SPEED)
@cameraLongitude += wrapAngle(@selectedShip.longitude - @cameraLongitude) * CAMERA_SPEED
@cameraLatitude += wrapAngle(@selectedShip.latitude - @cameraLatitude) * CAMERA_SPEED
@cameraRotationSpeed = 0
else
@cameraLatitude += -@cameraLatitude * CAMERA_SPEED
Expand Down

0 comments on commit c02d751

Please sign in to comment.