From 3f9df8f49cc84d77f585b77cbc9ac7c20478d406 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Thu, 17 Jul 2014 10:02:26 +0200 Subject: Fixed bug in player movement --- game/states/play.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/states/play.js') diff --git a/game/states/play.js b/game/states/play.js index 104c322..e3009a5 100644 --- a/game/states/play.js +++ b/game/states/play.js @@ -182,7 +182,7 @@ Play.prototype = { var newX = player.x + deltaX; var newY = player.y + deltaY; - if (!this.checkMap(newX, newY) && player.isMyTurn) { + if (!this.checkMap(newX, newY) && player.isMyTurn && !player.moving) { player.move(newX, newY); this.togglePlayerTurn(); } -- cgit v1.2.3