From 3f0487c55a3d9711c1e7f8b1a0bbdd3c967cb182 Mon Sep 17 00:00:00 2001 From: Carey Williams Date: Sun, 31 Aug 2025 18:33:42 +0100 Subject: [PATCH 1/2] Fix implicit declarations --- web/scene.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/scene.js b/web/scene.js index fb8d3070..a11e01f4 100644 --- a/web/scene.js +++ b/web/scene.js @@ -3392,7 +3392,7 @@ Scene.prototype.stat_chart = function stat_chart() { var label = this.replaceVariables(row.label); var definition = this.replaceVariables(row.definition || ""); - var statWidth, div, span, statValue; + var statWidth, div, span, span0, statValue; if (type == "text") { div = document.createElement("div"); setClass(div, "statText"); @@ -3447,7 +3447,7 @@ Scene.prototype.parseStatChart = function parseStatChart() { // nextIndent: the level of indentation after the current line var nextIndent = null; var rows = []; - var line, line1, line2, line2indent; + var line, line1, line1indent, line2, line2indent; var startIndent = this.indent; while(isDefined(line = this.lines[++this.lineNum])) { if (!trim(line)) { From 47a2a3ed9d11817d205a2387a95fc79d834caeb6 Mon Sep 17 00:00:00 2001 From: Carey Williams Date: Wed, 3 Sep 2025 00:36:24 +0100 Subject: [PATCH 2/2] options in ending --- web/scene.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/scene.js b/web/scene.js index a11e01f4..599c6b33 100644 --- a/web/scene.js +++ b/web/scene.js @@ -2604,7 +2604,7 @@ Scene.prototype.ending = function ending() { if (typeof window == "undefined") return; this.paragraph(); var groups = [""]; - options = []; + var options = []; options.push({name:"Play again.", group:"choice", restart:true}); if (!window.isOmnibusApp) options.push({name:"Play more games like this.", group:"choice", moreGames:true}); options.push({name:"Share this game with friends.", group:"choice", share:true});