Skip to content

Commit

Permalink
Fix bug when set a fader to 0 and changing the value again.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwursteisen committed Feb 10, 2024
1 parent f440a3c commit 379eace
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tiny-cli/src/jvmMain/resources/sfx/game.lua
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,11 @@ function generate_score(played_pattern)
beatStr = beatStr .. "0000FF"
else
for note in all(beat) do
beatStr = beatStr .. to_hex(note.index) .. to_hex(note.note) .. to_hex(255) .. ":"
if note.note == 0 then
beatStr = beatStr .. "0000FF:"
else
beatStr = beatStr .. to_hex(note.index) .. to_hex(note.note) .. to_hex(255) .. ":"
end
end
beatStr = beatStr:sub(1, -2)
end
Expand Down

0 comments on commit 379eace

Please sign in to comment.