ref: b97e36954f873516c31c0a8c24054784f3c9d751
parent: ac46a8b6056cf12bff464407bc1582301051c1f1
author: Chris Moeller <kode54@gmail.com>
date: Sat Dec 29 13:02:21 EST 2012
Fixed portamento up effect when NNA channels are active
--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -2339,11 +2339,11 @@
playing = sigrenderer->playing[i];
if (!playing || playing->channel != channel) continue;
}
- if (channel->playing) {
+ if (playing) {
if ((v & 0xF0) == 0xF0)
- channel->playing->slide += (v & 15) << 4;
+ playing->slide += (v & 15) << 4;
else if ((v & 0xF0) == 0xE0)
- channel->playing->slide += (v & 15) << 2;
+ playing->slide += (v & 15) << 2;
else if (i < 0 && sigdata->flags & IT_WAS_A_669)
channel->portamento += v << 3;
else if (i < 0)
@@ -2666,7 +2666,7 @@
}
}
break;
- case IT_S:
+ case IT_S:
{
/* channel->lastS was set in update_pattern_variables(). */
unsigned char effectvalue = channel->lastS;