shithub: dumb

Download patch

ref: b3596083ebba5974d1a5b9052145394eae980948
parent: 2fcecb0f960dc6d206a480bc882ce430054350e2
author: Chris Moeller <kode54@gmail.com>
date: Sun Aug 25 05:49:55 EDT 2013

IT NFx/NxF should not affect background voices

--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -2532,15 +2532,8 @@
 							if (channel->channelvolume > 64) channel->channelvolume = 0;
 						} else
 							break;
-						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;