summaryrefslogtreecommitdiff
path: root/objects.js
diff options
context:
space:
mode:
authorCode WvS <code-wvs@quantentunnel.de>2015-02-28 15:31:31 +0100
committerCode WvS <code-wvs@quantentunnel.de>2015-02-28 15:31:31 +0100
commit3e58dfa573be0ea6acb380ffa98ca8d7db6752a5 (patch)
tree0159d6fc1b061d8b843327f52c1c30cea4541c9c /objects.js
parentaa4ee2427ce91d52abd18858a4793e5973934e2d (diff)
downloadsnap-yow-3e58dfa573be0ea6acb380ffa98ca8d7db6752a5.tar.gz
snap-yow-3e58dfa573be0ea6acb380ffa98ca8d7db6752a5.zip
typo
Diffstat (limited to 'objects.js')
-rw-r--r--objects.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/objects.js b/objects.js
index 7d1b995..0f0514d 100644
--- a/objects.js
+++ b/objects.js
@@ -3358,7 +3358,7 @@ SpriteMorph.prototype.forward = function (meters) {
var diffLat, diffLon;
diffLat = Math.cos(radians(this.heading)) * (1 / 110.54 * kilometers);
diffLon = Math.sin(radians(this.heading))
- * (1 / (111.32 * Math.cos(radians(this.xPosition()))) * kilometers);
+ * (1 / (111.32 * Math.cos(radians(this.yPosition()))) * kilometers);
// TODO: "0 - ..." – why does this work? The formula above looks wrong ;-)
var diffPoint = new Point(diffLon, 0 - diffLat);