From 1d44821af84d29bfa61c80c4c0fd5a20b07e9f00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Sun, 15 Jul 2012 08:40:52 +0200 Subject: [PATCH] fix stone movement --- js/mine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/mine.js b/js/mine.js index 31f2564..e912441 100644 --- a/js/mine.js +++ b/js/mine.js @@ -328,7 +328,7 @@ var Mine = function() { newMap[y-1][x+1] = '*'; newMap[y][x] = ' '; if ('R' == map[y-2][x+1]) this._crushed(); - } else if ((below == '*') && ' ' == map[y-1][x-y] && ' ' == map[y][x-1]) { + } else if ((below == '*') && ' ' == map[y-1][x-1] && ' ' == map[y][x-1]) { // fall left newMap[y-1][x-1] = '*'; newMap[y][x] = ' ';