fix: update settings

This commit is contained in:
2026-06-25 19:21:09 +05:00
parent 2edba57952
commit 8a5a27f3b6
8 changed files with 122 additions and 24 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ let playerStats = {};
const params = new URLSearchParams(location.search);
const settings = {
autoRestart: params.get("autoRestart") !== "0",
singlePlay: params.get("singlePlay") === "1",
};
function initKeyboardBridge() {
@@ -183,7 +183,7 @@ function gameOver() {
document.getElementById("ui-overlay").classList.add("hidden");
document.getElementById("input-chat").classList.add("hidden");
gameLoopStarted = false;
if (settings.autoRestart) {
if (!settings.singlePlay) {
recalc();
runIntro();
} else {