Skip to content

Commit

Permalink
mby?
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed Jun 25, 2024
1 parent aa1ea20 commit 204c691
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mkwpp-parser/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ document.getElementById("readInput").addEventListener("click", async function()
break;
}
trackData = trackData.slice(1,trackData.length);
trackDataRef = trackDataRef.slice(1,trackDataRef.length);

if (track === -1) {
writeToOutput(`Skipped line "${line}" for player ${data.players[currentName]}, could not detect track.`);
Expand All @@ -234,11 +235,13 @@ document.getElementById("readInput").addEventListener("click", async function()
if (token.startsWith("n")) {
nosc = true;
trackData.splice(i,1);
trackDataRef.splice(i,1);
i--;
}
if (token.startsWith("f") || token.startsWith("l")) {
flap = true;
trackData.splice(i,1);
trackDataRef.splice(i,1);
i--;
}
}
Expand Down

0 comments on commit 204c691

Please sign in to comment.