summaryrefslogtreecommitdiff
path: root/game/states/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'game/states/play.js')
-rw-r--r--game/states/play.js2
1 files changed, 1 insertions, 1 deletions
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();
}