summaryrefslogtreecommitdiff
path: root/game/prefabs/player.js
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@entelect.co.za>2014-07-17 10:02:26 +0200
committerJustin Worthe <justin.worthe@entelect.co.za>2014-07-17 10:02:26 +0200
commit3f9df8f49cc84d77f585b77cbc9ac7c20478d406 (patch)
tree8e977eeb07f30d9e2dd75f7f896d41fc95dc0943 /game/prefabs/player.js
parent83d3c7bac60e8c838c4a779fde7d8ff6c8a7cc90 (diff)
Fixed bug in player movement
Diffstat (limited to 'game/prefabs/player.js')
-rw-r--r--game/prefabs/player.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/game/prefabs/player.js b/game/prefabs/player.js
index 3492836..98179d9 100644
--- a/game/prefabs/player.js
+++ b/game/prefabs/player.js
@@ -25,10 +25,6 @@ Player.prototype.update = function() {
};
Player.prototype.move = function(newX, newY) {
- if (this.moving || !this.isMyTurn) {
- return;
- }
-
this.moving = true;
var tween = this.game.add.tween(this).to({x: newX, y: newY}, 500);
tween.onComplete.add(this.finishMovement, this);