shithub: dumb

Download patch

ref: ea96b859192e9db25968d290b19e57ef25b62a1c
parent: 1c44d72e13bbd62790f71206fb061c606ec96337
author: Chris Moeller <kode54@gmail.com>
date: Sun Aug 25 03:50:31 EDT 2013

Channel volume effect should only apply to foreground voices

--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -2510,15 +2510,8 @@
 				else
 					channel->channelvolume = 64;
 #endif
-				for (i = -1; i < DUMB_IT_N_NNA_CHANNELS; i++) {
-					if (i < 0) playing = channel->playing;
-					else {
-						playing = sigrenderer->playing[i];
-						if (!playing || playing->channel != channel) continue;
-					}
-					if (playing)
-						playing->channel_volume = channel->channelvolume;
-				}
+				if (channel->playing)
+					channel->playing->channel_volume = channel->channelvolume;
 				break;
 			case IT_CHANNEL_VOLUME_SLIDE:
 				{