From 90359f7bd54e03372bd38b157244f291a37f3fe6 Mon Sep 17 00:00:00 2001 From: Qainguin Date: Sun, 11 Aug 2024 23:55:42 -0500 Subject: [PATCH] Stopped LapCounter from appearing on Battle Mode --- code/engine/scenes/singleScene.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/engine/scenes/singleScene.js b/code/engine/scenes/singleScene.js index 9754423..f7e890a 100644 --- a/code/engine/scenes/singleScene.js +++ b/code/engine/scenes/singleScene.js @@ -53,6 +53,7 @@ window.singleScene = function(course, wsInstance, res) { if (course.substr(0, 5) == "mkds/") { var cnum = Number(course.substr(5)); var course = MKDSCONST.COURSES[cnum]; + if (!course['battle']) { document.getElementById("lapCounter").style.visibility = "visible"; } var cDir = MKDSCONST.COURSEDIR+course.name; var mainNarc = new narc(lz77.decompress(gameROM.getFile(cDir+".carc"))); var texNarc = new narc(lz77.decompress(gameROM.getFile(cDir+"Tex.carc"))); @@ -63,7 +64,6 @@ window.singleScene = function(course, wsInstance, res) { function setUpCourse(mainNarc, texNarc, course) { document.getElementById("gradientBG").style.zIndex = -1; - document.getElementById("lapCounter").style.visibility = "visible"; var chars = []; chars.push({