From ba1f0a02b2d6e41cfa473d13bd02d464877c7f1c Mon Sep 17 00:00:00 2001 From: Lennard Sprong Date: Mon, 14 Oct 2024 08:22:21 +0200 Subject: [PATCH] meidjuluk: Fix preset bank when making new puzzle --- src/variety/snakeegg.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/variety/snakeegg.js b/src/variety/snakeegg.js index 7c78ec442..f81021431 100644 --- a/src/variety/snakeegg.js +++ b/src/variety/snakeegg.js @@ -550,13 +550,15 @@ "Encode@meidjuluk": { decodePzpr: function() { var bd = this.board; - this.genericDecodeNumber16(bd.cell.length, function(c, val) { - if (val === 0) { - bd.cell[c].ques = 7; - } else { - bd.cell[c].qnum = val; - } - }); + if (this.outbstr[0] !== "/") { + this.genericDecodeNumber16(bd.cell.length, function(c, val) { + if (val === 0) { + bd.cell[c].ques = 7; + } else { + bd.cell[c].qnum = val; + } + }); + } this.decodePieceBank(); }, encodePzpr: function(type) {