diff options
Diffstat (limited to 'game/states')
-rw-r--r-- | game/states/play.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/game/states/play.js b/game/states/play.js index 1b59596..7ffcc3d 100644 --- a/game/states/play.js +++ b/game/states/play.js @@ -210,8 +210,7 @@ Play.prototype = { var newY = player.y + deltaY; if (!this.checkMap(newX, newY) && player.isMyTurn && !player.moving) { - player.move(newX, newY); - this.togglePlayerTurn(); + player.move(newX, newY, this.togglePlayerTurn, this); } }, playerPillCollision: function(player, pill) { |