yay for more compatibility flags

ignore duplicate slides on .dmf
This commit is contained in:
tildearrow 2022-02-18 02:03:31 -05:00
parent 86e5b77981
commit ce2af4303e
6 changed files with 32 additions and 6 deletions

View file

@ -552,6 +552,8 @@ void DivEngine::processRow(int i, bool afterDelay) {
chan[i].retrigSpeed=0;
short lastSlide=-1;
// effects
for (int j=0; j<song.pat[i].effectRows; j++) {
short effect=pat->data[whatRow][4+(j<<1)];
@ -583,6 +585,8 @@ void DivEngine::processRow(int i, bool afterDelay) {
dispatchCmd(DivCommand(DIV_CMD_PANNING,i,effectVal));
break;
case 0x01: // ramp up
if (song.ignoreDuplicateSlides && lastSlide==0x01) break;
lastSlide=0x01;
if (effectVal==0) {
chan[i].portaNote=-1;
chan[i].portaSpeed=-1;
@ -600,6 +604,8 @@ void DivEngine::processRow(int i, bool afterDelay) {
}
break;
case 0x02: // ramp down
if (song.ignoreDuplicateSlides && lastSlide==0x02) break;
lastSlide=0x02;
if (effectVal==0) {
chan[i].portaNote=-1;
chan[i].portaSpeed=-1;