Skip to content

Commit

Permalink
Fix a85 encoding, null scrolls with 0 value
Browse files Browse the repository at this point in the history
  • Loading branch information
tillvit committed Sep 2, 2024
1 parent 70cb8e8 commit 0c470dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/chart/sm/TimingData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -478,14 +478,14 @@ export abstract class TimingData {
switch (event.type) {
case "BPMS":
case "SPEEDS":
case "SCROLLS":
case "TICKCOUNTS":
case "TIMESIGNATURES":
case "COMBOS":
return false
case "STOPS":
case "WARPS":
case "DELAYS":
case "SCROLLS":
case "FAKES":
return event.value == 0
case "LABELS":
Expand Down
2 changes: 1 addition & 1 deletion app/src/util/Ascii85.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function _85encode(
if (padding && !pad) {
if (chunks.at(-1) == "z".charCodeAt(0)) {
chunks.pop()
for (let i = 0; i < 5; i++) chunks.push(chunks[0])
for (let i = 0; i < 5; i++) chunks.push(chars[0])
}
for (let i = 0; i < padding; i++) chunks.pop()
}
Expand Down

0 comments on commit 0c470dc

Please sign in to comment.