Fix: error thrown, wrong function called.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 25 Sep 2014 00:54:13 +0300
changeset 137 be8ee2240a17
parent 136 4a143572b9d2
child 138 23cd36180bf9
Fix: error thrown, wrong function called.
2048.html
--- a/2048.html	Wed Sep 24 23:21:30 2014 +0300
+++ b/2048.html	Thu Sep 25 00:54:13 2014 +0300
@@ -664,7 +664,7 @@
       }
       var tsTo = new Date().getTime();
       ui.board.turn += step;
-      ui.game.finishStep();
+      ui.game.refresh();
       ui.score.speed(parseFloat((step*1000.0/(tsTo-tsFrom)).toPrecision(3)));
       ui.game.setMessage("Game over!");
       ui.ai.current.cleanup();