shithub: dumb

Download patch

ref: ee34129043d15e9cb9f980ab73585bbec8b40314
parent: b85fdab6f8102a7df5925d58a4e07b98ed69dd4a
author: Chris Moeller <kode54@gmail.com>
date: Thu Nov 7 13:20:52 EST 2013

Fixed IT mixing Dxx regular volume slide with cx/dx volume column slide effect

--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -2072,7 +2072,7 @@
 				v = channel->lastvolslide;
 			channel->lastvolslide = v;
 			/* = effect Dx0 where x == entry->volpan - 85 */
-			channel->volslide = v;
+			channel->volslide += v;
 		} else if (entry->volpan <= 104) {
 			/* Volume slide down */
 			unsigned char v = entry->volpan - 95;
@@ -2080,7 +2080,7 @@
 				v = channel->lastvolslide;
 			channel->lastvolslide = v;
 			/* = effect D0x where x == entry->volpan - 95 */
-			channel->volslide = -v;
+			channel->volslide -= v;
 		} else if (entry->volpan <= 114) {
 			/* Portamento down */
 			unsigned char v = (entry->volpan - 105) << 2;