From af13b82c9fb1f5abb31952bb8d48a400a20c6f86 Mon Sep 17 00:00:00 2001 From: tomgrim1 Date: Tue, 12 Feb 2013 23:28:03 +0000 Subject: [PATCH] Distance travelled stops accumulating whilst the skier is stationary. --- js/skier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/skier.js b/js/skier.js index 7c0bd62..3ed1161 100644 --- a/js/skier.js +++ b/js/skier.js @@ -60,7 +60,7 @@ var Sprite = require('./Sprite'); }; that.cycle = function () { - if (!that.hasBeenHit) { + if (that.isMoving) { pixelsTravelled += that.speed; }