Skip to content

Commit 379eace

Browse files
committed
Fix bug when set a fader to 0 and changing the value again.
1 parent f440a3c commit 379eace

File tree

1 file changed

+5
-1
lines changed
  • tiny-cli/src/jvmMain/resources/sfx

1 file changed

+5
-1
lines changed

tiny-cli/src/jvmMain/resources/sfx/game.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,11 @@ function generate_score(played_pattern)
442442
beatStr = beatStr .. "0000FF"
443443
else
444444
for note in all(beat) do
445-
beatStr = beatStr .. to_hex(note.index) .. to_hex(note.note) .. to_hex(255) .. ":"
445+
if note.note == 0 then
446+
beatStr = beatStr .. "0000FF:"
447+
else
448+
beatStr = beatStr .. to_hex(note.index) .. to_hex(note.note) .. to_hex(255) .. ":"
449+
end
446450
end
447451
beatStr = beatStr:sub(1, -2)
448452
end

0 commit comments

Comments
 (0)