Skip to content

Commit

Permalink
Resolves #1134 -- show solution on gist levels
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Cottle committed Mar 30, 2024
1 parent ac94520 commit b86a9d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/level/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ var Level = Sandbox.extend({
);
log.showLevelSolution(this.getEnglishName());
}.bind(this);

var commandStr = command.get('rawStr');
if (!this.testOptionOnString(commandStr, 'noReset')) {
toIssue = 'reset --forSolution; ' + toIssue;
Expand All @@ -282,7 +282,9 @@ var Level = Sandbox.extend({
return;
}

if(!LevelStore.isLevelSolved(this.level.id)){
// if the level doesn't have an ID, its a GIST import and
// we don't need to worry about the solved map regardless
if(this.level.id && !LevelStore.isLevelSolved(this.level.id)){
// allow them for force the solution
var confirmDefer = Q.defer();
var dialog = intl.getDialog(require('../dialogs/confirmShowSolution'))[0];
Expand Down

0 comments on commit b86a9d7

Please sign in to comment.