From 25250e8c4667a53de5d8268adbf3921726c69094 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Tue, 16 Feb 2021 23:40:34 +0100 Subject: [PATCH] Fix sounds playing during mod initialization #558 --- src/Footer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Footer.js b/src/Footer.js index 17ddf41..813b4eb 100644 --- a/src/Footer.js +++ b/src/Footer.js @@ -12,6 +12,7 @@ * It starts the further initialization of CookieMonster and registers hooks */ CM.init = function() { + CM.Footer.isInitzializing = true var proceed = true; if (Game.version != CM.VersionMajor) { proceed = confirm('Cookie Monster version ' + CM.VersionMajor + '.' + CM.VersionMinor + ' is meant for Game version ' + CM.VersionMajor + '. Loading a different version may cause errors. Do you still want to load Cookie Monster?'); @@ -20,7 +21,7 @@ CM.init = function() { CM.DelayInit(); Game.registerHook('draw', CM.Disp.Draw); Game.registerHook('logic', CM.Loop); - + CM.Footer.isInitzializing = false } };