shithub: dumb

Download patch

ref: 4a26a05d107a1aee0cc21bf5a41344da35acc3bf
parent: 7a16e6a7caf6c001064e47e5da9c19f9e2c75d43
author: Chris Moeller <[email protected]>
date: Tue Aug 27 11:26:30 EDT 2013

Fixed IT note cut and note off commands

--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -1733,7 +1733,9 @@
 	if (channel->playing) {
 		if (channel->note == IT_NOTE_CUT)
 			nna = NNA_NOTE_CUT;
-		if (channel->note > 120)
+		else if (channel->note == IT_NOTE_OFF)
+			nna = NNA_NOTE_OFF;
+		else if (channel->note > 120)
 			nna = NNA_NOTE_FADE;
 		else if (!channel->playing->instrument || (channel->playing->flags & IT_PLAYING_DEAD))
 			nna = NNA_NOTE_CUT;