Skip to content

Commit

Permalink
Stopped LapCounter from appearing on Battle Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Qainguin committed Aug 12, 2024
1 parent ab82f1f commit 90359f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/engine/scenes/singleScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")));
Expand All @@ -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({
Expand Down

0 comments on commit 90359f7

Please sign in to comment.