Check game over status for restored positions on page load.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 10 Jun 2015 21:57:38 -0500
changeset 165 4579c59e7e6b
parent 159 2709c9ff04f0
child 166 cde69b258e85
child 167 ae123e309e31
Check game over status for restored positions on page load.
2048.html
--- a/2048.html	Sun Jun 07 12:30:26 2015 +0300
+++ b/2048.html	Wed Jun 10 21:57:38 2015 -0500
@@ -1034,6 +1034,7 @@
           ui.board.turn = 0;
         ui.board.update(ui.board.position);
         ui.score.update(ui.board.position, ui.board.turn);
+        ui.game.checkGameOver();
       } catch (ex) { }
     } else {
       ui.action.start();