S3M import; fix range of X effect

This commit is contained in:
tildearrow 2024-07-04 15:41:23 -05:00
parent f68249f52b
commit 77ab02a173

View file

@ -1015,8 +1015,10 @@ bool DivEngine::loadS3M(unsigned char* file, size_t len) {
case 'W': // global volume slide (!)
break;
case 'X': // panning (extension)
p->data[curRow][effectCol[chan]++]=0x80;
p->data[curRow][effectCol[chan]++]=effectVal;
if (effectVal<=0x80) {
p->data[curRow][effectCol[chan]++]=0x80;
p->data[curRow][effectCol[chan]++]=(effectVal&0x80)?0xff:(effectVal<<1);
}
break;
case 'Y': // panbrello (extension)
break;