Merge branch 'master' into gh-pages

This commit is contained in:
Gabriele Cirulli
2014-03-22 18:33:33 +01:00
+6 -1
View File
@@ -83,7 +83,12 @@ GameManager.prototype.actuate = function () {
this.storageManager.setBestScore(this.score); this.storageManager.setBestScore(this.score);
} }
this.storageManager.setGameState(this.serialize()); // Clear the state when the game is over (game over only, not win)
if (this.over) {
this.storageManager.clearGameState();
} else {
this.storageManager.setGameState(this.serialize());
}
this.actuator.actuate(this.grid, { this.actuator.actuate(this.grid, {
score: this.score, score: this.score,