Permalink
Browse files

Crossing the date line caused the camera to spin: fixed

  • Loading branch information...
vilcans committed Apr 22, 2012
1 parent b6e9543 commit c02d751622c21486a01f14ef584dddb841ea60a7
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/game.coffee
View
@@ -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

0 comments on commit c02d751

Please sign in to comment.