diff --git a/CHANGELOG.md b/CHANGELOG.md index cc769a1936..2c761c0296 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Tooltips not localized in Reflection activity #1508 - Time fluctuations in Clock Activity #1507 - Resizing textarea in activity palette looks ugly #1303 +- Player without face and color #1536 ## [1.7.0] - 2023-03-28 ### Added diff --git a/activities/MazeWeb.activity/js/activity.js b/activities/MazeWeb.activity/js/activity.js index eae6afdcc9..33e95590ab 100644 --- a/activities/MazeWeb.activity/js/activity.js +++ b/activities/MazeWeb.activity/js/activity.js @@ -37,9 +37,7 @@ define(["sugar-web/activity/activity","tween","rAF","activity/directions","sugar } // Load from datastore - if (!environment.objectId) { - runLevel(); - } else { + if (environment.objectId) { activity.getDatastoreObject().loadAsText(function(error, metadata, data) { if (error==null && data!=null) { data = JSON.parse(data); @@ -475,6 +473,7 @@ define(["sugar-web/activity/activity","tween","rAF","activity/directions","sugar var nextLevel = function () { gameSize *= 1.2; + dirtyCells = []; runLevel(); } @@ -644,6 +643,7 @@ define(["sugar-web/activity/activity","tween","rAF","activity/directions","sugar var restartButton = document.getElementById('restart-button'); restartButton.addEventListener('click', function(e) { gameSize = 60; + dirtyCells = []; runLevel(); });